|
ennye Novice
Joined: 17 Dec 2007 Posts: 49
|
Posted: Sun Mar 07, 2010 2:15 am
[3.14a] %ansi issue |
problem:
Code: |
#ec %ansi(black,white)this is a test %ansi(yellow) this a test |
should look like:
Code: |
#say %ansi(black,white)this is a test %ansi(yellow,black) this is a test
|
another %ansi command in line is not reseting previous one %ansi command any more
is this a bug or should we rewrite the script? |
|
|
|
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: Sun Mar 07, 2010 5:44 pm |
Try placing an %ansi(reset) before your color change?
|
|
|
|
ennye Novice
Joined: 17 Dec 2007 Posts: 49
|
Posted: Sun Mar 07, 2010 10:43 pm |
I know how to avoid it, the question is if it is going to be changed ;)
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Mar 08, 2010 2:49 pm |
Actually, I think this is the correct effect. If I set the background color, I wouldn't want another %ansi() to change the background unless I specifically asked it to. %ansi(yellow) should only affect the foreground color, in my opinion.
|
|
|
|
ennye Novice
Joined: 17 Dec 2007 Posts: 49
|
Posted: Mon Mar 08, 2010 2:59 pm |
May be. But its been working that way since the begining of zmud/cmud.
%ansi always reset color from its position.
And i prefer it working that way.
Since this update i have all new colorfull script effects ;)
However no problem rewriting it, adding background color where its ommited. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Mar 08, 2010 4:35 pm |
From the 3.14 version history:
Quote: |
%ansi(textcolor) no longer also returns the string for a black background color |
So I guess it was a deliberate change. Looks like previously it wasn't merely resetting the background color, it was specifically setting it to black. I never noticed that previous behavior because I always use black background. |
|
|
|
|
|