Text icons and markups (Civ5)
From Civilization Modding Wiki
Jump to navigationJump to search
This page is a part of the Civ5 Modding Tutorials.
The following markups can be used anytime a text is displayed by the civ5 UI, including mods description. They can be used both in XML or Lua.
Example
Hello user. Are you?[NEWLINE] [ICON_BULLET][COLOR_POSITIVE_TEXT]Good?[ENDCOLOR]. [ICON_BULLET][COLOR_NEGATIVE_TEXT]Evil?[ENDCOLOR].
Formatting markups
[NEWLINE]
inserts a line break.[TAB]
inserts a tabulation.[SPACE]
inserts a white space (useful at the beginning of a line in XML).[LINK]
inserts a link. Example:[LINK=IMPROVEMENT_TRADING_POST]The trading post[/LINK]
[T]
doesn't seem to work.
Icons markups
The table below lists the icons markups. There is no ending markup, just insert one of those in your text to have it substituted with the corresponding icon. All icons are defined in the IconFontMapping and are 22 pixels high and wide.
Colors markups
The table below lists the main opening color markups (players colors have been excluded, as long as a few translucent ones). Use [ENDCOLOR]
as the ending markup. All colors are defined in the Colors table.
- You can also use custom colors through the following syntax:
[COLOR:255:235:0:255]
[COLOR_ADVISOR_HIGHLIGHT_TEXT]
|
[COLOR_FONT_GREEN]
|
[COLOR_RESEARCH_STORED]
|
|||||||||
[COLOR_ALT_HIGHLIGHT_TEXT]
|
[COLOR_FONT_RED]
|
[COLOR_SELECTED_TEXT]
|
|||||||||
[COLOR_BLACK]
|
[COLOR_GREAT_PEOPLE_STORED]
|
[COLOR_TECH_TEXT]
|
|||||||||
[COLOR_BLUE]
|
[COLOR_GREEN]
|
[COLOR_UNIT_TEXT]
|
|||||||||
[COLOR_BROWN_TEXT]
|
[COLOR_GREY]
|
[COLOR_WARNING_TEXT]
|
|||||||||
[COLOR_BUILDING_TEXT]
|
[COLOR_HIGHLIGHT_TEXT]
|
[COLOR_WATER_TEXT]
|
|||||||||
[COLOR_CITY_BLUE]
|
[COLOR_LIGHT_GREY]
|
[COLOR_WHITE]
|
|||||||||
[COLOR_CITY_BROWN]
|
[COLOR_MAGENTA]
|
[COLOR_XP_BLUE]
|
|||||||||
[COLOR_CITY_GREEN]
|
[COLOR_MENU_BLUE]
|
[COLOR_YELLOW]
|
|||||||||
[COLOR_CITY_GREY]
|
[COLOR_NEGATIVE_TEXT]
|
[COLOR_YIELD_FOOD]
|
|||||||||
[COLOR_CULTURE_STORED]
|
[COLOR_POPUP_TEXT]
|
[COLOR_YIELD_GOLD]
|
|||||||||
[COLOR_CYAN]
|
[COLOR_POSITIVE_TEXT]
|
[COLOR_YIELD_PRODUCTION]
|
|||||||||
[COLOR_DARK_GREY]
|
[COLOR_PROJECT_TEXT]
|