|
nazzireth Beginner
Joined: 26 Jun 2007 Posts: 12
|
Posted: 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 =) |
|
|
|
rozdwojeniejazni Wanderer
Joined: 13 Aug 2011 Posts: 74
|
Posted: 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) |
|
|
|
|
nazzireth Beginner
Joined: 26 Jun 2007 Posts: 12
|
Posted: Sat Jul 13, 2013 1:33 am |
That worked GREAT! =)
Thank you so much |
|
|
|
|
|