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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Tue May 18, 2004 10:43 pm   

Toggle Buttons
 
Is there a way to toggle a button without clicking it?
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Wed May 19, 2004 12:35 am   
 
Give the button an ID, then:

#BU idofbutton

will toggle it just as if you had pushed it.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed May 19, 2004 1:38 am   
 
From the Help page "Advanced Button" describing all the things on the Advanced tab of the button setting.

quote:
If a Variable name is assigned to a button, zMUD automatically sets the variable value whenever the button state changes and whenever the variable changes the button state will change and commands for that state will execute. For toggle buttons 0=off, 1=on. For multistate buttons, main caption state has a value of zero, and all other states are numbered according to thier order. You can use the Default field of the Variable to specify the startup state of a button. Note that using this method will execute commands before a connection to the mud is established.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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