--- Disregard, I found button state - life is good smile ---

I've got the majority of my game working so I'm now trying to setup some panels that will be used to select game options. I have a series of global variables that store the configuration values. Some of the variable are toggles (ON/OFF) and others are value ranges so I plan to use buttons and sliders. My problem is that I can't seem to find a way to associate the buttons with their associated variables.

Ideally, I would like to open the panel and display the current settings via the state of the buttons and sliders. I'd like to be able to make changes then save everything with a save button or abandon the changes with a cancel button. I figure that the best way is to make temporary copies the configuration variables and store them back on a save except that I can't figure out how to set the buttons to the current state of the variable.

I'd appreciate it if someone could point me in the direction of some sample code that does this.

Mario


Last edited by mperdue; 02/26/09 22:07.