Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Oct 19, 2007 5:17 am   

[2.06] Problem with Gauge Text changing color
 
When redefining gauge colors using HTML color codes eg #FF3388 and the #GAUGE command (actually when you do the #GAUGE command at any time) the text color becomes what is specified for the normal color.

It's been around in CMUD since the 1.xx days, I just finally tracked it down.

To recreate this define the following gauge on the command line. Note that the text color is black.
Code:
#GAUGE hp "hp" 150 200 50 "" yellow yellow white


Then issue this command to update it. It using the HTML color code equivalents.
Code:
#GAUGE hp "hp" 150 200 50 "" #FFFF00 #000088 white


You will immediately notice the problem on the gauge.

Open the package editor via Ctrl-G to confirm the text color is now yellow.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Oct 19, 2007 5:46 pm   
 
That is correct because the #GAUGE command does not have an argument to change the text color. The text color was added in CMUD and the only way to change it is via the user interface. But I might be able to fix it so that the text color is not overwritten.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Fri Oct 19, 2007 6:52 pm   
 
Zugg wrote:
... and the only way to change it is via the user interface.


You can use the %btncol function as well, that's my current workaround. Not resetting the text color though would be enough.
_________________
Asati di tempari!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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