list_box_add_item()
List Box: Add Item | Action ID: ListBoxAddItem
Add a manual list-box item with an ID, text, optional icon, disabled state and insertion index.
| Option key / field | Meaning and accepted input | Default |
|---|---|---|
| GUI guiId | Choose an authored GUI ID. | Blank |
| List Box elementId | Choose an element inside the selected GUI. | Blank |
| New Item ID itemId | Text. | Blank |
| Item Text text | Text. | Blank |
| Optional Icon iconAssetId | Choose an imported image. May be blank. | Blank |
| Disabled disabled | On/off. | true |
| Insert Index (-1 = End) insertIndex | Zero-based insertion position; -1 appends to the list. | -1 |
Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.
list_box_add_item({"guiId": "hud", "elementId": "topline", "itemId": "key"})In use. Add a discovered location to a travel list with a stable ID. An insertion index of -1 appends. Turn Disabled off when the player should be able to select the row. For list boxes bound to an array or inventory, change the data source rather than expecting manual entries to override it permanently.
