I noticed today that the Initialize function was called, while the Lua measure is disabled from the beginning. From the manual:
Disabled
If set to 1, the measure is never updated.
Does this mean that Initialize will be called regardless of Disabled value? A test skin for quick testing is attached. Please move it anywhere else if it doesn't fit this category.function Initialize()
Initialize is called once when the skin is refreshed or activated.
Skin.ini:
Code: Select all
[Lua]
Measure=SCRIPT
ScriptFile=Test.lua
Disabled=1
[Meter]
Meter=IMAGE
SolidColor=100,0,0
W=40
H=40
Code: Select all
function Initialize()
print('Should I print, while I am disabled?')
end --function Initialize