Skip to reading
GDScript Programming & Godot

ListBoxClearItems()

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: Clear Items

Clear the manual items in a list box.

Source table from ListBoxClearItems(), page 183
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
List Box elementIdChoose an element inside the selected GUI.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ListBoxClearItems({"guiId": "hud", "elementId": "topline"})

In use. Empty a results list before rebuilding it. An array- or inventory-backed list may repopulate from its source; clear or change that source when appropriate.

CarouselAddImage()#

Carousel: Add Image

Add an imported image asset to an image carousel.

Source table from ListBoxClearItems(), page 183
Option key / fieldMeaning and inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Image Carousel elementIdChoose an element inside the selected GUI.Blank
Image Asset assetIdChoose an imported image.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await CarouselAddImage({"guiId": "hud", "elementId": "topline", "assetId": "your_asset"})

In use. Add a newly discovered photograph to a gallery. Choose the GUI and carousel element, then the image asset. This is not a command to create a new image file.

Page 183 of 378Permalink
Go to page