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
Morcelu
Newbie


Joined: 15 Aug 2006
Posts: 8

PostPosted: Sun Aug 09, 2009 12:56 am   

Changing a button color
 
Not exactly like the front page, button

But what I want to do is have my buttons light up once I'm able to do something, ie

@fashion_amounts > 5 the button would be green

@fashion_amounts < 5the button would be red?

is there a way to do in zmud?

Also I'm trying to do this as a Push button currently because My Guage becomes all Screwed up when I change it to Guage and I would like the ability to just click on it and have it excute a command.

Am I trying to do to much in zmud or can this be doable?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Aug 09, 2009 3:24 am   
 
Yes, it's possible.

#CALL %btncol(name or number of button, color you want to use)

Examples:

//try to get in the habit of not doing it this way
#CALL %btncol(17,red)

//this is what you should be doing
#CALL %btncol(fashions,red)

Ideally, your names should be something that help remind you what they are referring to and what it does but there's no enforcement of this. So, for example, you might want to use "btnFashions" instead.
_________________
EDIT: I didn't like my old signature
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