issues
search
opentibiabr
/
otcv8
OTCv8 for OpenTibia Community.
Other
11
stars
20
forks
source link
Added variables in OTUI
#10
Closed
luanluciano93
closed
3 months ago
luanluciano93
commented
3 months ago
Syntax: $var-
: value
Can be used in Lua, ie. label:setColor("$var-color")
g_ui.getOTUIVars() returns map with all variables and their values
g_ui.hasOTUIVar(variable) returns true if variable exists
g_ui.getOTUIVar(variable) returns value of variable
g_ui.getOTUIVarSafe(variable) returns value of variable or variable
g_ui.addOTUIVar(var, value) adds new variable with value
Added data/styles/0-vars.otui with variables for 10-labels.otui
credits: Oen44
credits: Oen44