Copyright © 2025-2026 Candy ArtsButton UI
The Button UI displays one choice inside a category. See Choice Menus for how menus are built.
- Script: Choice_Button.gd
- Templates: Scenes/Choice_Buttons
- Updates: the script is 'unsafe', and so is every template except Default.tscn (see Customizing UI Elements, on the UI page)
| Variable | Node |
| choice_button | Required. The node the player interacts with to select the choice, such as a Button. |
| choice_label | Required. The node displaying the choice's label, through its text property: a Button, Label or RichTextLabel. |
| choice_tooltip | Required. The node displaying the choice's tooltip, through its tooltip_text property: any Control. |
| Function | State / Default |
| _toggle_enabled() | choice_enabled (1 or 0). Empty by default: for example, gray out a disabled choice. |
| _toggle_active() | choice_active (1 or 0). Empty by default. |
| _toggle_invisible() | choice_invisible (1 or 0). Displays or hides the button. |
[[menu values], [category values], [choice values]]: the Custom Data of the Choice_List command, of the choice's category, then of the choice.
refresh_language() is called when the button's category is asked to display its texts again in a new language. It sets the label and tooltip again (see Translating UI Texts).