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


Joined: 29 Nov 2008
Posts: 20

PostPosted: Mon Dec 01, 2008 2:38 pm   

Buttons
 
Is it possible to make a button show as a certain colour depending on variable states?

For example I would like for a button to be show as blue when it's 'on' or when its variable=1, and to show as red when its variable is 'off' or when its variable=0.

Is this possible? Thanks!
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Mon Dec 01, 2008 3:02 pm   
 
Of course it is possible.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Dec 01, 2008 3:17 pm   
 
%ansi(%if(@variable,blue,red))stuff
<color %if(@variable,blue,red)>stuff</color>

in the captions, or put the variable in the box I can't remember the name of that controls the state of the button, then give the button two states with different background colours.

Or use %btncol.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
aedron
Beginner


Joined: 29 Nov 2008
Posts: 20

PostPosted: Mon Dec 01, 2008 5:03 pm   
 
Thank you so much!!
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