// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Museum quiet-reading mode // Not compiled or tested in-world // Setup: Put in a dedicated exhibit audio/label prim. Edit QUIET_CAPTION. Owner-touch activates quiet mode; touch again restores the original label. // Stop / restore: Turn quiet mode off to restore text before removing. Audio is stopped, not automatically restarted. // Notes: This is a manual exhibit affordance, not a sensor of someone’s accessibility needs. It affects only the prim containing the script. Keep example captions and notecard lines short, preferably ASCII. Character clipping is not UTF-8 byte-budget clipping: multibyte text may reach hover-text or chat limits sooner and be truncated. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. string QUIET_CAPTION="Quiet reading mode: please use the written exhibit description."; list saved; integer quiet; default { state_entry() { saved=llGetLinkPrimitiveParams(LINK_THIS,[PRIM_TEXT]); } touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner())return; quiet=!quiet; if(quiet) { llStopSound(); llSetText(QUIET_CAPTION,<0.9,0.95,1.0>,1.0); } else llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_TEXT]+saved); } }