Copyright © 2025-2026 Candy ArtsCategory UI
The Category UI contains a group of choices inside a choice menu, with its own title and prompt. See Choice Menus for how menus are built.
- Script: Choice_Category.gd
- Templates: Scenes/Choice_Categories
- Updates: the script is 'unsafe', and so is every template except Default.tscn (see Customizing UI Elements, on the UI page)
| Variable | Node |
| button_list | Required. The parent node of the category's buttons. |
| title_node | Optional. A Label or RichTextLabel for the category's title. |
| prompt_node | Optional. A Label or RichTextLabel for the category's prompt. |
| Function | Called / Default |
| setup(custom_data) | Once the category's data is assigned. Displays its title and prompt. |
| refresh_language() | When its menu's refresh_language() is called. Displays its title and prompt again in the current language, then calls refresh_language() on each button (see Translating UI Texts). |
[[menu values], [category values]]: the Custom Data of the Choice_List command, then of this category.