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


Joined: 26 Jun 2007
Posts: 12

PostPosted: Fri Jul 12, 2013 2:34 am   

Chnage main guage color based upn variable?
 
is it possible to change a button color based on a variable?

Like for my group member gauges if one member is a Mage can i make the button change to blue or green for cleric ? if i have the variables set up for it? I tried adding the @mag variable which is set to aqua like so in the XML of the gauge:

Color="aqua"
to
Color="@MAG"

and few other ways but it just gives an error and changes color to default.

sorry if this makes no sense i am still learning this =)
Reply with quote
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Fri Jul 12, 2013 8:38 am   
 
I think what you want is %btncol function. For a gauge it you can use it like this:
Code:
#call %btncol(clerikButton,red,yellow)
or
#call %btncol(clerikButton,$ff0000,$ffff00)
or
#call %btncol(clerikButton,@MAG,@MAG)
Reply with quote
nazzireth
Beginner


Joined: 26 Jun 2007
Posts: 12

PostPosted: Sat Jul 13, 2013 1:33 am   
 
That worked GREAT! =)
Thank you so much
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