|
darkspot Apprentice
Joined: 29 Jul 2002 Posts: 105
|
Posted: Sat Feb 21, 2004 2:33 am
Toggle Buttons |
I'd like to make a button, that shows the Variable @tank as it's label, I'd also like that when it's clicked, it turns on or off the class following so... @tank, and clicking alternates #t+ following, and #t- following. I tried but for the life of me couldn't get it to work :(
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Feb 21, 2004 5:51 am |
Use the Settings Editor.
Caption: @tank
Value: #IF (%class( following)) {#T- following} {#T+ following} |
|
|
|
darkspot Apprentice
Joined: 29 Jul 2002 Posts: 105
|
Posted: Sat Feb 21, 2004 10:21 am |
that didn't make it so when pushing it it'd turn the class on/off. it pushes... the tank name is on the button... but :( well thanks for the caption at least
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Feb 21, 2004 3:53 pm |
Sorry to disagree, but that is precisely what it does. If the "following" class is on, it turns it off. If the class is off it turns it on.
EDIT: I should perhaps point out that the script is for a Push button, not a Toggle button. |
|
|
|
|
|