Civ4PlayerColorInfos
From Civilization Modding Wiki
Jump to navigationJump to search
The Civ4PlayerColorInfos file defines the colors available for civilizations to use in the game.
All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.
Tags
Headers
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.
Tag Name | Description |
---|---|
PlayerColorInfo | Main bracket for each entry |
Type | Name used in other files |
Text
Tag Name | Description |
---|---|
ColorTypePrimary | Primary color used |
ColorTypeSecondary | Secondary color used |
TextColorType | Color used for text |
Example
In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.
<PlayerColorInfo> <Type>PLAYERCOLOR_BLACK</Type> <ColorTypePrimary>COLOR_PLAYER_BLACK</ColorTypePrimary> <ColorTypeSecondary>COLOR_PLAYER_WHITE</ColorTypeSecondary> <TextColorType>COLOR_PLAYER_BLACK_TEXT</TextColorType> </PlayerColorInfo>