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
Loftaris
Adept


Joined: 24 Aug 2004
Posts: 277

PostPosted: Tue Dec 27, 2011 2:16 pm   

I'm not quite sure how to do this
 
What I am trying to do, is create a button, or a gauge or something along those lines.

I want it to simply change color depending on 1 variable, and show me a # of another variable.

I've got a gauge currently showing me the # just fine, but I don't know how to get it to change color.. I've fiddled with the values, but it doesn't seem to work.

I want the whole button to change between green and red, the variable will either be 1(green) or 0(red) (or whatever numbers work really, it's not important, just simple.

Any ideas/suggestions how I might go about doing this?

Please and Thank you.

CMud Pro 3.34
Win7 64
Reply with quote
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Tue Dec 27, 2011 2:52 pm   
 
If you open the package editor and click on the gauge you have created already you will see a few tabs across the bottom of the screen. Click on the one that says Gauge. Set the gauge color to green and the low warning color and Gauge background color to red. In the value field put the name of the variable that will either be 1 or 0, don't forget to include the @ symbol. Enter 1 in the Max and Low fields.
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Loftaris
Adept


Joined: 24 Aug 2004
Posts: 277

PostPosted: Tue Dec 27, 2011 3:02 pm   
 
Hey, that's awesome, worked like a charm.

Thanks
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