|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
|
|