|
forren Novice
Joined: 26 Apr 2007 Posts: 44
|
Posted: Wed Aug 01, 2007 5:23 pm
Setting toggle botton state |
Alright, so I have toggle buttons to activate two defenses. When I start up Cmud, the default is for it to be in its unpressed state with a green color. However, I want it to start up in its pressed state with a grey color. Is there an easy way to code this in to my connection trigger? Thanks!
|
|
|
|
TesterOfLimitz Novice
Joined: 02 Jun 2007 Posts: 37
|
Posted: Wed Aug 01, 2007 6:19 pm |
You can change trigger states by setting up a variable in the Options part of the toggle button. It goes to its unpressed state when true (or 1) or its pressed state when false (or 0). I use this for one specific defence in Achaea (selfishness) as a visual reminder if its up or not. Im sure one of the guru's might beable to explain a little better however.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Aug 01, 2007 7:30 pm |
Assign a Variable to the button and then set the Default Value of the variable to be 1 (and set the Use Default option). This will load the variable with 1 when you load your session, which will then press the button that it's assigned to.
|
|
|
|
|
|