Civ4 Color Value Table by SimCutie
Version 1.0 (2005-12-12)
by SimCutie of CivFanatics <simcutie (AT) hanmail (DOT) com >
This is additional color value table for "Sid Meier's Civilization 4" game.
It is not standalone mod but a resource XML file that can be used by Civ4 mod creator and player.
Original Civ4 game comes with only small limited number of color values.
It limits modder and player in selecting new color scheme.
Adding more color is possible, but it needs tedious and error-prone XML editing.
Using different color table is also source of incompatibility among mod's
No more with is color table.
This file has large selection of colors ( more than 150 colors) so that
It will hardly need to add addtional colors to it.
There may be duplicated colors with existing colors (same color with different name) but it does not do any harm.
To use these colors in your mods, put the
"CIV4ColorVals.xml" to:
1) Player's
~My Documents/My Games/Sid Meier's Civilization 4/CustomAssets/xml/interface folder (preferred)
-or-
2)
... MODS/<mod-name>/Assets/xml/interface folder if used with custom mods.
To use color in your Python code, use it as color name string:
Code:
szbuf = localText.getText("[COLOR_W_ORANGE]Text in Orange\
Name = %s1 [COLOR_REVERT]Now white text again.", (str(Name),))
self.drawLine(screen, x1, y1, x2, y2,\
gc.getInfoTypeForString("COLOR_X_SALMON"))
Or in text resource XML, embrace color name with squre brackets.
Code:
<TEXT>
<Tag>TXT_KEY_MISC_GP_BORN</Tag>
<English>[COLOR_UNIT_TEXT]%s1_GPName[COLOR_REVERT] has been born in
[COLOR_X_LIGHTSKYBLUE]%s2_CityName[COLOR_REVERT]!</English>
<French>Naissance de [COLOR_UNIT_TEXT]%s1_GPName[COLOR_REVERT] ?
[COLOR_X_LIGHTSKYBLUE]%s2_CityName[COLOR_REVERT] !</French>
....
</TEXT>
Additional avilable colors:
- Web browser / HTML basic colors (16 colors)
- Orange color and 25%, 50%, 75% transparency. (4 colors)
- 140 named colors from X11 Window system "rgb.txt" (140 colors)
Most web browser supports these colors, too.
- gray 0% (black), 10%, ... 90%, 100% (White) - (11 gray level)
1, 2 category color name starts with "COLOR_W_ ..." prefix.
(ex:
COLOR_W_AQUA, COLOR_W_BLUE, COLOR_W_ORANGE, COLOR_W_CLEARTHIN )
Note that COLOR_W_GREEN is different color from COLOR_GREEN
Original COLOR_GREEN is same color with COLOR_W_LIME.
3, 4 category color name starts with "COLOR_X_ ..." prefix.
(ex:
COLOR_X_ALICEBLUE, COLOR_X_BLUEVIOLET, COLOR_X_GOLD, COLOR_X_GRAY80 )
Note that COLOR_X_ORANGE is slightly different color from COLOR_W_ORANGE.
For list of X11 color sample, see
"COLOR-TABLE.html" in ZIP file.
This file can be distributed freely along with your own mod file.
Feel free ask any question or suggestion.
.