Where can I find label color codes?

This forum is for users of the game to post general feedback and discuss the game.

Moderators: Forum Moderators, Developers

Where can I find label color codes?

Postby Ivan_D » February 8th, 2010, 11:49 pm

I don't remember it clearly now, but there was a way to make the label text red. You should've written the label like this: "@=textext" and it turned red nevertheless what color your side had.

If you understand what I'm talking about, where can I find the full list of codes?
User avatar
Ivan_D
 
Posts: 9
Joined: May 26th, 2009, 9:01 pm

Re: Where can I find label color codes?

Postby beetlenaut » February 9th, 2010, 3:05 am

This is from the wiki, and may be what you're talking about:

* A tilde (~) as the first character causes the line to be boldfaced.
* An at symbol (@) as the first character causes the line to be green, as done with victory conditions.
* A pound symbol (#) as the first character causes the line to be red, as done with defeat conditions.
* An asterisk (*) as the first character causes the line to be bigger.
* A backquote (`) as the first character causes the line to be smaller.
* If used, the caption key text is boldfaced.
* An RGB colour code in the beginning causes the line to be the given colour. This can still be preceded by the above characters. Example: message=_"<255,0,0>Red!"
The merman campaign: Dead Water
An orcish campaign: The Founding of Borstep
User avatar
beetlenaut
Art Contributor
 
Posts: 799
Joined: December 8th, 2007, 3:21 am
Location: The dry side of Oregon, USA

Re: Where can I find label color codes?

Postby AI » February 9th, 2010, 9:33 am

That's old-style markup. 1.7 uses pango markup, which looks similar to html.
Code: Select all
<span color='red'>text</span>
<span color='#ff0000'>text</span>
AI
UMC-Dev Cultist
 
Posts: 1903
Joined: January 31st, 2008, 8:38 pm

Re: Where can I find label color codes?

Postby Ivan_D » February 9th, 2010, 1:07 pm

Thank you both, these are exactly what I wanted.

Here are the links that I googled up:
1) for 1.6 http://wiki.wesnoth.org/InterfaceActionsWML#Formatting (beetlenaut's post)
2) for 1.7 http://library.gnome.org/devel/pango/un ... ormat.html (AI's post)

Though neither works in 1.6 (only *).
User avatar
Ivan_D
 
Posts: 9
Joined: May 26th, 2009, 9:01 pm

Re: Where can I find label color codes?

Postby IPS » February 12th, 2010, 1:24 am

You can use this command (but beetlenaut tell this before)

<Red, Green, Blue>
The numbers works to 0 at 255, if you type 256 its the same than 1 and the same with 511.

In the wesnoth 1.6.4 this command works only in "rename unit" but this worked in labbels to in wesnoth 1.4.4, But I dont know why them changed this :/

P.D: I didnt knew * works to do more bigger the labbel / rename unit... thix ;D
Creator of:
- Challenges (Current version 0.1.1) Need feedback/comments
- IPS maps (current version 0.0.1a)

Future projects
- Fantasy Era (in construction)
- Revolution and magic (ideas dessigning)
- War for wesnoth era (waiting to finish Fantasy era)
User avatar
IPS
 
Posts: 510
Joined: December 6th, 2009, 6:36 pm

Re: Where can I find label color codes?

Postby ahyangyi » February 13th, 2010, 7:41 am

IPS wrote:You can use this command (but beetlenaut tell this before)

<Red, Green, Blue>
The numbers works to 0 at 255, if you type 256 its the same than 1 and the same with 511.

In the wesnoth 1.6.4 this command works only in "rename unit" but this worked in labbels to in wesnoth 1.4.4, But I dont know why them changed this :/

P.D: I didnt knew * works to do more bigger the labbel / rename unit... thix ;D


I think the numbers should work to 0 at 256. Anyway, it's not great matter, as nobody is going to use numbers greater than 255 :)
ahyangyi
 
Posts: 25
Joined: February 9th, 2010, 1:00 pm


Return to Users' Forum

Who is online

Users browsing this forum: Google [Bot] and 2 guests