Skip to reading
PCA Script Programming

enable_gui()

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

Enable Gui | Action ID: EnableGUI

Enable an authored interface through the runtime GUI manager.

Source table from enable_gui(), page 170
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank

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

Code example
enable_gui({"guiId": "hud"})

In use. Enable a menu after a sequence that disabled it. Whether it is currently visible is a separate state; use Show GUI as well if it needs to appear.

disable_gui()#

Disable Gui | Action ID: DisableGUI

Disable an authored interface through the runtime GUI manager.

Source table from enable_gui(), page 170
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank

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

Code example
disable_gui({"guiId": "hud"})

In use. Prevent interaction with an interface while a transition is running. Use Hide GUI if the intention is to remove it from view. Test the final disabled appearance in the running game.

Page 170 of 357Permalink
Go to page