39. Configure the project and authored interfaces
function run()
let previous = get_setting("musicVolume", 0.7)
set_setting("musicVolume", 0.5)
set_gui_element_property("hud", "topline", "text", "Workshop powered")
set_gui_property("hud", "visible", true)
return previous
endProject settings are reached with get_project_property() / set_project_property(). The shorter setting helpers address values below settings. They operate on the running game’s data. They are not commands to open the Project Settings Designer or permanently save the editor document.
Use the exact key list in the reference. Preserve the property’s type: a Boolean checkbox expects true/false, an asset selector expects an ID, a radius expects a number and a shader layer stack expects structured data. A new key with a plausible name does nothing unless the runtime uses it.
GUI event behavior is configured in the GUI Designer. A button can call a PCA script and let that script set text, visibility, images, widget state and gameplay actions. The designer’s interaction preview is for appearance and pointer state; use a running game to test scripts and event chains.
For inventory/save widgets, target the intended outer panel, slot, thumbnail or navigation part. Their image and corner-radius overrides can be separate. Use a setter for the specific key rather than writing the same whole-element radius to every nested part.
