Civ4GraphicOptionInfos: Difference between revisions
(→Text) |
m (Unprotected "Civ4GraphicOptionInfos") |
||
(14 intermediate revisions by 8 users not shown) | |||
Line 22: | Line 22: | ||
===Text=== | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | |||
|- | |||
! style="background:#efefef;" | Tag Name | |||
! style="background:#efefef;" | Description | |||
|- | |||
!Type | |||
|This is the internal name of this graphic option (e.g. GRAPHICOPTION_SINGLE_UNIT_GRAPHICS). | |||
|- | |||
!Description | |||
|This contains a reference to an entry in the Civ4GameTextInfos file, controlling the language-specific display name for this option. | |||
|- | |||
!Help | |||
|This is a reference to an entry in the Civ4GameText_Misc1, which describes the mouseover text explaining this option. | |||
|} | |||
===Boolean=== | ===Boolean=== |
Latest revision as of 01:17, 3 October 2011
The Civ4GraphicOptionInfos file describes the various choices available under the Graphics tab of the in-game options menu (accessible via keyboard shortcut of Control + O). Example options include Single Unit Graphics and Health Bars.
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 |
---|---|
GraphicOptionInfos | This begins and ends the entire file. All options' info is contained within. |
GraphicOptionInfo | This contains the information for each graphic option. |
Text
Tag Name | Description |
---|---|
Type | This is the internal name of this graphic option (e.g. GRAPHICOPTION_SINGLE_UNIT_GRAPHICS). |
Description | This contains a reference to an entry in the Civ4GameTextInfos file, controlling the language-specific display name for this option. |
Help | This is a reference to an entry in the Civ4GameText_Misc1, which describes the mouseover text explaining this option. |
Boolean
All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".
Tag Name | Description |
---|---|
bDefault | All standard options have a value of 0. If 1, this graphic option is enabled by default. |
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.
<GraphicOptionInfos> <GraphicOptionInfo> <Type>GRAPHICOPTION_SINGLE_UNIT_GRAPHICS</Type> <Description>TXT_KEY_OPTIONS_SINGLE_UNIT</Description> <Help>TXT_KEY_OPTIONS_SINGLE_UNIT_HELP</Help> <bDefault>0</bDefault> </GraphicOptionInfo> <GraphicOptionInfo> <Type>GRAPHICOPTION_HEALTH_BARS</Type> <Description>TXT_KEY_PLAYER_OPTION_SHOW_HEALTH_BARS</Description> <Help>TXT_KEY_PLAYER_OPTION_SHOW_HEALTH_BARS_HELP</Help> <bDefault>0</bDefault> </GraphicOptionInfo> <PlayerOptionInfo> <Type>GRAPHICOPTION_CITY_DETAIL</Type> <Description>TXT_KEY_PLAYER_OPTION_DETAILED_CITY_INFO</Description> <Help>TXT_KEY_PLAYER_OPTION_DETAILED_CITY_INFO_HELP</Help> <bDefault>0</bDefault> </PlayerOptionInfo> </PlayerOptionInfos>