Open the same menu in other languages
On this page
These short alternatives all call the same shared GUI action. You only need the language you are using for your project. Create a record in the matching script designer, validate/apply it and call it from an event or action list.
PCA Script#
language 1.0function run(context)
show gui workshop_menu
return true
endLua#
local Script = {}
function Script.run(context)
await(ShowGUI({guiId = "workshop_menu"}))
return true
end
return ScriptBASIC#
OPTION PCA3D BASIC 1.0
FUNCTION Run(context AS Dictionary)
AWAIT ShowGUI({"guiId": "workshop_menu"})
RETURN TRUE
END FUNCTIONEach version opened the same Workshop Menu in the runtime checks. Use HideGUI / the matching hide-gui statement for a closing path, or call the shared Hide GUI action from the event editor.
Native GDScript also provides GetGUIProperty, SetGUIProperty, GetGUIElementProperty and SetGUIElementProperty for direct reads and writes. Supply the GUI ID, element ID where needed, property key and value/default appropriate to that helper.
