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


Joined: 06 Jul 2007
Posts: 27

PostPosted: Wed Sep 03, 2008 6:10 pm   

Retaining background color of status bar
 
I wanted to use color to highlight certain status values on my status bar. I've been experimenting with the %ansi function, but the result I get has the correct foreground color and black for the background color. I don't know how to capture the status bar background color.

Or is there another way to accomplish the same thing, changing the foreground color, without changing the existing background color on the status bar.

Thanks in advance
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Sep 03, 2008 7:31 pm   
 
You can use MXP/HTML colors. For example:
Code:
Hp: <color red>@hp</color>

in a status bar item would make your HP value in red. And I'm pretty sure it just changes the foreground color and not the background.
Reply with quote
Stephenos
Beginner


Joined: 06 Jul 2007
Posts: 27

PostPosted: Wed Sep 03, 2008 9:14 pm   
 
That worked, Zugg. Thank you. I had to put double quotes around the color modified values e.g. "<color red>Down</color>". This may be because the selections were used in an %if function.
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