Civ4ArtDefines Bonus: Difference between revisions
m (Reverted edits by 144.124.32.130 (Talk) to last version by Ginger Ale) |
|||
Line 48: | Line 48: | ||
== 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. | |||
<BonusArtInfo> | |||
<Type>ART_DEF_BONUS_ALUMINUM</Type> | |||
<fScale>1.0</fScale> | |||
<fInterfaceScale>1.0</fInterfaceScale> | |||
<NIF>Art/Terrain/Resources/Aluminum/Aluminum.nif</NIF> | |||
<KFM>Art/Terrain/Resources/Aluminum/Aluminum.kfm</KFM> | |||
<Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button> | |||
</BonusArtInfo> | |||
{{Civ4_XML_Files}} |
Latest revision as of 20:57, 8 April 2010
The Civ4ArtDefines_Bonus file declares all the art files, and art properties, for each of the resources.
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 |
---|---|
BonusArtInfo | Main bracket for each entry. |
Type | Label that is used throughout all other XML files. |
Art
These tags are directly related to the rendering of art for the entry.
Tag Name | Description |
---|---|
fScale | Scale on Map. |
fInterfaceScale | Multiply by fScale to get scale in Civilopedia. |
NIF | Location of .nif file. |
KFM | Location of .kfm file. |
Button | Icon, generally: ,path to icon,path to Atlas,x-coordinate,y-coordinate. |
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.
<BonusArtInfo> <Type>ART_DEF_BONUS_ALUMINUM</Type> <fScale>1.0</fScale> <fInterfaceScale>1.0</fInterfaceScale> <NIF>Art/Terrain/Resources/Aluminum/Aluminum.nif</NIF> <KFM>Art/Terrain/Resources/Aluminum/Aluminum.kfm</KFM> <Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button> </BonusArtInfo>