when I saw this line:
But I never did find the method for setting the value of a string meter =/Directly set the value of a string meter.
Can anyone point me in the right direction?
[EDIT]
I'm making a flash card skin, which is why I want to know how to set the value of a string meter.
I don't need to update the skin at all until I press the 'next card', 'prev card' or 'flip card' buttons.
I tried something along the lines of:
Skin.ini
Code: Select all
[MeterNextCard]
LeftMouseUpAction =!Execute [!CommandMeasure "MeasureLua" "nextCard()"]
Code: Select all
function nextCard ()
temp_i = tonumber(SKIN:GetVariable("card.cur"))+1
if (temp_i == tonumber(SKIN:GetVariable("card.amt"))) then
SKIN:Bang("!SetVariable card.cur 0")
else
SKIN:Bang("!SetVariable card.cur "..temp_i)
end
SKIN:Bang("!Update")
end
I also tried !Redraw, !UpdateMeeasure MeasureLua, !UpdateMeter MeterFlashCard and a bunch of other stuff but couldn't get it to update immediately after a button was clicked