Add, modify, delete and clear
| Action | What to supply | Result |
|---|---|---|
| List Box: Add Item | GUI, List Box, New Item ID, Text, Optional Icon, Disabled, Insert Index | Adds a row; -1 appends. Duplicate IDs can receive suffixes. |
| List Box: Modify Item | GUI, List Box, Item ID, Property, New Value | Changes a row field. |
| List Box: Delete Item | GUI, List Box, Item ID | Removes one row from the widget. |
| List Box: Clear Items | GUI and List Box | Empties that widget’s local rows. |
Modify Item supports text, id, iconAssetId, disabled and selected. Use Boolean true or false for disabled and selected. For a rename that should preserve story references, change text rather than id.
await ListBoxModifyItem({
"guiId": "clues_page",
"elementId": "clue_list",
"itemId": "letter",
"property": "text",
"value": "The keeper's letter"
})The code above belongs inside the run function of a script based on script_base.gd. It changes only the displayed sentence for letter. The row ID remains letter, so Review Clue still recognizes it.
Changing selected through Modify Item can deliberately select or deselect a manual row and update its output variable. Do not use it casually on a live source list: even this property change activates the local-copy behavior described next.
