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
NitroGlycerine
Beginner


Joined: 26 Apr 2007
Posts: 29

PostPosted: Fri Apr 27, 2007 11:51 am   

toggle buttons code
 
In ZMUD you could make a toggle button, link it to a variable so that the variable directly controls the button and the other way around. Then when setting the variable to 0 or 1 also the code inside the button executed. This doesn't seem to work anymore. Was this change intended? Or is this a bug?

If this has already been answered somewhere my apologies, was unable to find it on the forums or in the documentation.
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Apr 27, 2007 8:21 pm   
 
You can still do this, and it still works just fine:

Create a new Button and set it to a Type of Toggle. Then click the Options tab at the bottom of the editor and enter the name of the variable into the Variable field.

For example, I entered "a" (without the quotes) into the Varaible field. Then, on the command line I typed:

a=1

and the button pushed in. Then

a=0

and the button was unpushed again.
Reply with quote
NitroGlycerine
Beginner


Joined: 26 Apr 2007
Posts: 29

PostPosted: Fri Apr 27, 2007 9:36 pm   
 
The button responds to a=1 and a=0.

But the code behind the button doesn't seem to execute like it used to do in ZMUD by setting a=1/a=0.

Perhaps I'm doing something wron though.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Apr 30, 2007 5:25 pm   
 
Confirmed and added to bug list.
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