![](templates/Classic/images/spacer.gif) |
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Fri Nov 01, 2002 2:53 pm
Stw colors |
A new day and new problems
So here I am again. I was wondering if there is a
way to get ansicolors into the stw? I know I can change
the color in the stw but I want to do it like this if
it's possible.
I have just variables in the stw and I need em to show
diffrent colors in diffrent stats. So if a @var is ON
it should show Highlighted color green and if the @var is OFF
it should show Highlighted red. Is this possible. I have tried
with #showansi but I can't get the stw to show the colors.
Anyone? |
|
|
![](templates/Classic/images/spacer.gif) |
Humpton Apprentice
![](images/avatars/54749252340f5ed44a3fc9.jpg)
Joined: 10 Oct 2000 Posts: 158 Location: Chicago, IL
|
Posted: Fri Nov 01, 2002 4:32 pm |
Just add %ansi() codes into your text. I have a very colorful STW!
I guess you can somehow use them in variables to reflect your on/off stuff.
Have fun!
Stay JOLLY!
H
___
Humpton lives like he types.... fast, and full of mistakes!
Core 2651: For those who prefer the future to the past. |
|
|
![](templates/Classic/images/spacer.gif) |
takke Beginner
Joined: 11 Oct 2002 Posts: 29 Location: Sweden
|
Posted: Fri Nov 01, 2002 4:53 pm |
That wasen't much help. As I said I know that I can use ansi
to get colors into the stw but I need em to change with the variable.
Something like this:
#If (var = on) {#cw yellow} {#cw red}
You get the point.
But I can't get it to work |
|
|
![](templates/Classic/images/spacer.gif) |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Nov 01, 2002 6:03 pm |
#SHOWANSI??? You just made that up, right?
As Humpton said, you can use the %ansi function to change colors however you want in the status window. It helps if you take the time to actually investigate suggestions.
%if(@var="ON", %ansi(yellow), %ansi(red))
LightBulb
Senior Member |
|
|
![](templates/Classic/images/spacer.gif) |
|
|