- Home /
ezgui: Which state is active for UIStateToggleBtn
what variable do i need to access to check which state my UIStateToggleBtn has changed to? this is what i wana implement
if ( STATE 0 )
{
// do this
}
ELSE IF ( STATE 1 )
{
// then do this
}
thank you
Comment
Best Answer
Answer by robertbu · Apr 17, 2013 at 02:26 PM
Typically StateNum would be the value. If you are using this in conjunction with the code in your last question, you can save the value from MySetState() and access that instead. Since the states are implemented as animations, you can also dig down to get the animation frame number:
int state = uitb.animations[0].GetCurrentPosition();
Your answer
Follow this Question
Related Questions
Build & run to Android 2 Answers
EZ Gui positioning 1 Answer
Interface 3D 1 Answer
Orthographic objects follow in perspective 2 Answers
How can I make my scroll list scroll 1 item per button click? 1 Answer