 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: 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. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
 |
NitroGlycerine Beginner
Joined: 26 Apr 2007 Posts: 29
|
Posted: 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. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Apr 30, 2007 5:25 pm |
Confirmed and added to bug list.
|
|
|
 |
|
|