Text icons and markups (Civ5)

From Civilization Modding Wiki
Revision as of 20:38, 22 September 2012 by DonQuich (talk | contribs)
Jump to navigationJump to search

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.

Civ5Icon.Alpha.png [ICON_ALPHA] Civ5Icon.ReligionBuddhism.png [ICON_RELIGION_BUDDHISM] Civ5Icon.ResSalt.png [ICON_RES_SALT]
Civ5Icon.Blockaded.png [ICON_BLOCKADED] Civ5Icon.ReligionChristianity.png [ICON_RELIGION_CHRISTIANITY] Civ5Icon.ResSheep.png [ICON_RES_SHEEP]
Civ5Icon.Bullet.png [ICON_BULLET] Civ5Icon.ReligionConfucianism.png [ICON_RELIGION_CONFUCIANISM] Civ5Icon.ResSilk.png [ICON_RES_SILK]
Civ5Icon.Capital.png [ICON_CAPITAL] Civ5Icon.ReligionHinduism.png [ICON_RELIGION_HINDUISM] Civ5Icon.ResSilver.png [ICON_RES_SILVER]
Civ5Icon.Citizen.png [ICON_CITIZEN] Civ5Icon.ReligionIslam.png [ICON_RELIGION_ISLAM] Civ5Icon.ResSpices.png [ICON_RES_SPICES]
Civ5Icon.CityState.png [ICON_CITY_STATE] Civ5Icon.ReligionJudaism.png [ICON_RELIGION_JUDAISM] Civ5Icon.ResStone.png [ICON_RES_STONE]
Civ5Icon.Connected.png [ICON_CONNECTED] Civ5Icon.ReligionOrthodox.png [ICON_RELIGION_ORTHODOX] Civ5Icon.ResSugar.png [ICON_RES_SUGAR]
Civ5Icon.Culture.png [ICON_CULTURE] Civ5Icon.ReligionPantheon.png [ICON_RELIGION_PANTHEON] Civ5Icon.ResTruffles.png [ICON_RES_TRUFFLES]
Civ5Icon.Denounce.png [ICON_DENOUNCE] Civ5Icon.ReligionProtestant.png [ICON_RELIGION_PROTESTANT] Civ5Icon.ResUranium.png [ICON_RES_URANIUM]
Civ5Icon.Flower.png [ICON_FLOWER] Civ5Icon.ReligionShinto.png [ICON_RELIGION_SHINTO] Civ5Icon.ResWhale.png [ICON_RES_WHALE]
Civ5Icon.Food.png [ICON_FOOD] Civ5Icon.ReligionSikhism.png [ICON_RELIGION_SIKHISM] Civ5Icon.ResWheat.png [ICON_RES_WHEAT]
Civ5Icon.Gold.png [ICON_GOLD] Civ5Icon.ReligionTaoism.png [ICON_RELIGION_TAOISM] Civ5Icon.ResWine.png [ICON_RES_WINE]
Civ5Icon.GoldenAge.png [ICON_GOLDEN_AGE] Civ5Icon.ReligionTengriism.png [ICON_RELIGION_TENGRIISM] Civ5Icon.Research.png [ICON_RESEARCH]
Civ5Icon.GreatPeople.png [ICON_GREAT_PEOPLE] Civ5Icon.ReligionZoroastrianism.png [ICON_RELIGION_ZOROASTRIANISM] Civ5Icon.Resistance.png [ICON_RESISTANCE]
Civ5Icon.Happiness1.png [ICON_HAPPINESS_1] Civ5Icon.ResAluminum.png [ICON_RES_ALUMINUM] Civ5Icon.Spy.png [ICON_SPY]
Civ5Icon.Happiness2.png [ICON_HAPPINESS_2] Civ5Icon.ResBanana.png [ICON_RES_BANANA] Civ5Icon.Star.png [ICON_STAR]
Civ5Icon.Happiness3.png [ICON_HAPPINESS_3] Civ5Icon.ResCitrus.png [ICON_RES_CITRUS] Civ5Icon.Strength.png [ICON_STRENGTH]
Civ5Icon.Happiness4.png [ICON_HAPPINESS_4] Civ5Icon.ResCoal.png [ICON_RES_COAL] Civ5Icon.Team1.png [ICON_TEAM_1]
Civ5Icon.Influence.png [ICON_INFLUENCE] Civ5Icon.ResCopper.png [ICON_RES_COPPER] Civ5Icon.Team10.png [ICON_TEAM_10]
Civ5Icon.Inquisitor.png [ICON_INQUISITOR] Civ5Icon.ResCotton.png [ICON_RES_COTTON] Civ5Icon.Team11.png [ICON_TEAM_11]
Civ5Icon.Invest.png [ICON_INVEST] Civ5Icon.ResCow.png [ICON_RES_COW] Civ5Icon.Team2.png [ICON_TEAM_2]
Civ5Icon.Locked.png [ICON_LOCKED] Civ5Icon.ResCrab.png [ICON_RES_CRAB] Civ5Icon.Team3.png [ICON_TEAM_3]
Civ5Icon.Minus.png [ICON_MINUS] Civ5Icon.ResDeer.png [ICON_RES_DEER] Civ5Icon.Team4.png [ICON_TEAM_4]
Civ5Icon.Missionary.png [ICON_MISSIONARY] Civ5Icon.ResDye.png [ICON_RES_DYE] Civ5Icon.Team5.png [ICON_TEAM_5]
Civ5Icon.Moves.png [ICON_MOVES] Civ5Icon.ResFish.png [ICON_RES_FISH] Civ5Icon.Team6.png [ICON_TEAM_6]
Civ5Icon.Mushroom.png [ICON_MUSHROOM] Civ5Icon.ResFur.png [ICON_RES_FUR] Civ5Icon.Team7.png [ICON_TEAM_7]
Civ5Icon.Occupied.png [ICON_OCCUPIED] Civ5Icon.ResGems.png [ICON_RES_GEMS] Civ5Icon.Team8.png [ICON_TEAM_8]
Civ5Icon.Omega.png [ICON_OMEGA] Civ5Icon.ResGold.png [ICON_RES_GOLD] Civ5Icon.Team9.png [ICON_TEAM_9]
Civ5Icon.Peace.png [ICON_PEACE] Civ5Icon.ResHorse.png [ICON_RES_HORSE] Civ5Icon.TeamUsa.png [ICON_TEAM_USA]
Civ5Icon.Pirate.png [ICON_PIRATE] Civ5Icon.ResIncense.png [ICON_RES_INCENSE] Civ5Icon.Trade.png [ICON_TRADE]
Civ5Icon.Plus.png [ICON_PLUS] Civ5Icon.ResIron.png [ICON_RES_IRON] Civ5Icon.TradeWhite.png [ICON_TRADE_WHITE]
Civ5Icon.Production.png [ICON_PRODUCTION] Civ5Icon.ResIvory.png [ICON_RES_IVORY] Civ5Icon.ViewCity.png [ICON_VIEW_CITY]
Civ5Icon.Prophet.png [ICON_PROPHET] Civ5Icon.ResJewelry.png [ICON_RES_JEWELRY] Civ5Icon.War.png [ICON_WAR]
Civ5Icon.Puppet.png [ICON_PUPPET] Civ5Icon.ResMarble.png [ICON_RES_MARBLE] Civ5Icon.Worker.png [ICON_WORKER]
Civ5Icon.RangeStrength.png [ICON_RANGE_STRENGTH] Civ5Icon.ResOil.png [ICON_RES_OIL] Civ5Icon.Wtf1.png [ICON_WTF1]
Civ5Icon.Razing.png [ICON_RAZING] Civ5Icon.ResPearls.png [ICON_RES_PEARLS] Civ5Icon.Wtf2.png [ICON_WTF2]
Civ5Icon.Religion.png [ICON_RELIGION] Civ5Icon.ResPorcelain.png [ICON_RES_PORCELAIN]


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]