Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
forren
Novice


Joined: 26 Apr 2007
Posts: 44

PostPosted: 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!
Reply with quote
TesterOfLimitz
Novice


Joined: 02 Jun 2007
Posts: 37

PostPosted: 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.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net