- Dynamic theme support.
Example:
...
['FrameRounding'] = {
['Dynamic_Var'] = [[
return math.random(0, 15)
]],
},
['Button'] = {
['Dynamic_Color'] = [[
if not ColorWheel then ColorWheel = math.random(10000) end
if not ColorWheelTimer then ColorWheelTimer = os.clock() end
if os.clock() - ColorWheelTimer > 0.25 then
ColorWheel = ColorWheel + 1
ColorWheelTimer = os.clock()
end
return IM_COL32(
math.floor(math.sin(0.3 * (ColorWheel) + 0) * 127 + 128),
math.floor(math.sin(0.3 * (ColorWheel) + 2) * 127 + 128),
math.floor(math.sin(0.3 * (ColorWheel) + 4) * 127 + 128))
]],
},
...