1. Give each control one clear job
| Control | Its ordinary job | Workshop example |
|---|---|---|
| Label | Show information the player reads. | Good evening, @PlayerName. |
| Button | Offer an action the player can choose. | Use this name or Check answer. |
| Text Box | Let the player enter or edit text. | A visitor name, a command or a puzzle answer. |
A label can display a variable without changing it. A text box can collect a name without automatically saving it. A button can look clickable without having an action. The useful connection is the one you deliberately make between them.
Keep names, IDs and visible words separate#
| Field or value | Example | Why it matters |
|---|---|---|
| GUI ID | register_panel | Names the whole interface. |
| Element ID | name_box | Names one control inside it. |
| Editor Name | Name Box | Helps you find that control in the editor. |
| Displayed text | Use this name | The words the player sees on a button. |
| Variable ID | visitor_name | The game value the label or script will use. |
Use stable IDs, such as name_box, and readable editor names, such as Visitor Name Entry. Giving the text box the same name as a variable does not bind the two together.
An event can also make a label clickable. That is useful for a small help link or a dialogue line, but use a recognisable Button for a main command so the player can tell it is interactive.
