// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Build theme caption board // Not compiled or tested in-world // Setup: Edit THEMES. Owner-touch selects one of six constraints; Restore reinstates the original hover text. // Stop / restore: Use the Restore or Home action described in setup before removing or resetting if you want the startup appearance. Menu listeners expire after 45 seconds. // Notes: Local owner-only control. Saved snapshots live in script memory and are lost on reset. A useful activity selector rather than a random fortune. It does not start tasks, record participants, or assess finished work. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer channel; integer handle; close() { if(handle)llListenRemove(handle); handle=0; llSetTimerEvent(0.0); } menu(string prompt,list buttons) { if(!handle) { channel=-1000-(integer)llFrand(1000000.0); handle=llListen(channel,"",llGetOwner(),""); } llDialog(llGetOwner(),prompt,buttons,channel); llSetTimerEvent(45.0); } list THEMES=["Build using only circles","Make a readable sign","Design for a tiny avatar","Make movement feel slow","Use light without glare","Create an accessible sound cue"]; list saved; init() { saved=llGetLinkPrimitiveParams(LINK_THIS,[PRIM_TEXT]); } show() { menu("Workshop constraint",["Circles","Sign","Tiny","Slow","Light","Sound","Restore"]); } choose(string s) { if(s=="Restore")llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXT]+saved); else { integer i=llListFindList(["Circles","Sign","Tiny","Slow","Light","Sound"],[s]); if(i<0)return; llSetText(llList2String(THEMES,i),<0.9,0.9,0.7>,1.0); } show(); } default { state_entry() { init(); } touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner())return; close(); show(); } listen(integer ch,string name,key id,string message) { if(!handle||ch!=channel||id!=llGetOwner())return; choose(message); } timer() { close(); } changed(integer change) { if(change&CHANGED_OWNER)llResetScript(); } }