Skip to reading
PCA Script Programming

list_box_delete_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: Delete Item | Action ID: ListBoxDeleteItem

Delete a list-box item by its item ID.

Source table from list_box_delete_item(), page 176
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

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

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

In use. Remove a destination that is no longer available. The item's ID is not its visible label or a row number. Consider disabling it instead when the player should still see that it exists.

Page 176 of 357Permalink
Go to page