Page 1 of 1

[SOLVED] SetVariable idle/selected behaviour

Posted: Mon Apr 27, 2015 1:03 pm
by SinnyROM
Hey, I'm not sure if this is a bug or if it's expected behaviour.

I give a button the action SetVariable(name,value) starting in the idle state.
After clicking on the button, it goes to the selected state.
After clicking elsewhere, the button is still in selected state.
It remains selected until that game ends.

I attached some screenshots of what I saw in regards to the Prefs button in the quick menu.

Re: SetVariable idle/selected behaviour

Posted: Mon Apr 27, 2015 6:00 pm
by xavimat
I don't understand why you put a "SetVariable" action in the Prefs button of the quick menu, but anyway, the answer is "expected behavior". A button that sets a variable to a value is "selected" if that variable has that value.

Re: SetVariable idle/selected behaviour

Posted: Mon Apr 27, 2015 6:02 pm
by Alex
That's how it goes. For more information, read this post - http://lemmasoft.renai.us/forums/viewto ... ed#p322596

edit: i'm sloooow

Re: SetVariable idle/selected behaviour

Posted: Mon Apr 27, 2015 7:19 pm
by SinnyROM
Using Prefs was a quick example, just to make sure I wasn't going nuts. Thanks to the both of you! The link was very enlightening.