Skip to reading
PCA Script Programming

change_gui_element_property()

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

Change Gui Element Property | Action ID: ChangeGUIElementProperty

Change a supported property on a GUI element.

Source table from change_gui_element_property(), page 174
Option key / fieldMeaning and accepted inputDefault
GUI guiIdChoose an authored GUI ID.Blank
Element / Group elementIdChoose an element inside the selected GUI.Blank
Property propertyChoose an element property.Blank
To 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
change_gui_element_property({"guiId": "hud", "elementId": "topline", "property": "text"})

In use. Change the status label's text after the signal is powered. Use the correct property key and value type. In a GUI event's script context, elementId this can refer to the calling element; a global event usually has no such caller.

Page 174 of 357Permalink
Go to page