Module for querying and modifying engine configuration settings.
TRX.Config.Get(key)key.
TRX.Config.Set(key, value)key to value. Returns an
error if the option is unknown or the value has an invalid format. All
values are currently passed as strings, even for numeric or boolean
options. Color settings expect a 6-digit hexadecimal string.
Note that using this API overrides the player's settings. The old value isn't stored anywhere – the new value immediately becomes the active setting, as if changed directly by the player, and will be remembered across game saves and relaunches globally. Because of this, it's best to mark any options you plan to modify (like water or fog color, view distances, etc.) as frozen or hidden in the gameflow settings.
TRX.Config.List()Example - to list all settings and their values in the log file:
for opt, val in pairs(TRX.Config.List()) do
TRX.Log.Info(opt .. " = " .. val)
end