Read Script UI Configuration (LCC.get_ui_config)
Signature
config = LCC.get_ui_config()
Parameters
- none
Returns
- config
Table containing theConfigsection ofmain.jsontogether with default values of UI controls.
Notes
Flat scripts read
XXT_SCRIPTS_PATH .. "/main.json"; XPP packages read the package file returned byxpp.resource_path("main.json"). TheConfigblock is then merged with control defaults to build the final configuration table. ComboBox/RadioGroup values return the selected label; CheckBoxGroup returns mappings such as{ ['Option A'] = true }.
Returns an empty table whenmain.jsonis missing or malformed.
Example
local conf = LCC.get_ui_config()
if conf["Target Group"] then
print("Running against group: " .. conf["Target Group"])
end