So for my settings menu I want it so the user can turn fullscreen on or off, doing this by the standard having a branch with one executing r.setRes 640x480f and the other executing r.setRes 640x480. So the question is how to get a Check box to work as a boolean. IE if selected statement is true execute r.setRes 640x480f.
Thanks
You need to bind event to “on change” or something like this.
I did not used checkboxes, but all input widgets have bindable events that give you current state.
So bind to that event, then save value into boolean.
When you select checkbox, on bottom of details panel should be list of green buttons with white + with all kinds of “on something”
Or you can right click on that checkbox there also should be list.
On check state change.
Okay so put a boolean (fullscreenTrue) that changes with the checkbox. Ah and bind the state to the Boolean so that you can’t exit and come back in and mess things up. Thanks for that. Extra pair of eyes always usefull.