Skip to reading
PCA Script Programming

list_box_modify_item()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

List Box: Modify Item | Action ID: ListBoxModifyItem

Change an existing list item's text, ID, icon, disabled or selected property.

Source table from list_box_modify_item(), page 177
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
List Box elementIdChoose an element inside the selected GUI.Blank
Item ID itemIdText.Blank
Property propertyChoose: text, id, iconAssetId, disabled, selected."text"
New Value valueA value of the type required by the selected variable, operation or property.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
list_box_modify_item({"guiId": "hud", "elementId": "topline", "itemId": "key"})

In use. Disable a travel destination during a storm. Changing an item ID can break later lookups, so treat IDs as stable references whenever possible.

Page 177 of 357Permalink
Go to page