Skip to reading
Buttons, Labels & Text Boxes

9. Open a panel or choose a verb

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

A button that opens the register#

1. On a visible HUD, add a Register button.

2. In its Click event, choose the catalog Show GUI action.

3. Select Workshop Register(register_panel) in the GUI parameter.

4. Give the panel a close/return Button using Hide GUI, targeting the same GUI.

5. Keep the panel trigger-controlled, save and test opening and closing it.

A modal GUI blocks interaction with the room while it is visible. It does not automatically stop every animation or timer. If modal is not exposed on a new record's General form, it is the whole-GUI JSON property "modal": true; use that advanced option only when you need this behavior.

A button that chooses Look or Use#

1. Choose the built-in set-verb behavior for Click.

2. In Click Verb, select the existing Look or Use verb.

3. Add a HUD Label containing {command}.

4. Run the game, choose the verb and hover over an interactable room object.

The command label combines the verb display name with the hovered target. Choosing Use prepares that interaction; the object still needs its own verb actions. For the uncluttered panel screenshots, the open sequence also hides workshop_hud; the close sequence shows it again with the matching Show GUI action.

A GUI ID in an action is the stored ID, not the full Name(ID) display label. Choose the reference selector when offered. For built-in show-gui/hide-gui behaviors with a plain Target field, enter register_panel exactly.

Page 21 of 46Permalink
Go to page