Skip to reading
PCA Script Programming

show_gui_element()

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

Show Gui Element | Action ID: ShowGUIElement

Show one element inside an authored GUI.

Source table from show_gui_element(), page 171
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank

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

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

In use. Reveal an archive tab button after the player finds the key. Select both the owning GUI and that element. The parent GUI and any parent panel must also be visible.

hide_gui_element()#

Hide Gui Element | Action ID: HideGUIElement

Hide one element inside an authored GUI.

Source table from show_gui_element(), page 171
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank

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

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

In use. Hide a temporary objective label after completion. A hidden child cannot be made visible merely by showing its parent if its own visible flag remains off.

Page 171 of 357Permalink
Go to page