Skip to reading
PCA Script Programming

gui_element_property() and aliases

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
On this page
Code example
get_gui_element_property(gui, element, property, fallback = null)

Read an authored element property. For a loaded control, available live control properties such as text are read first.

Returns: Property value or fallback.

Code example
Aliases: get_gui_element_property()
Code example
get_gui_element_property("name_entry", "name_box", "text", "")

set_gui_element_property()#

Code example
set_gui_element_property(gui, element, property, value)

Change an element property through the runtime manager.

Returns: Boolean; false when the element route is not found.

Code example
set_gui_element_property("hud", "topline", "text", "Ready.")

A change can rebuild a control. Do not assume every widget’s in-progress input/selection survives an unrelated appearance change.

get_project_property() and aliases#

Code example
get_project_property(path, fallback = null)

Read a supported project-data path.

Returns: Value or fallback.

Aliases: project_property()

Code example
get_project_property("meta.name", "Untitled")
Page 66 of 357Permalink
Go to page