Civ4ArtDefines Bonus: Difference between revisions
No edit summary |
m (Reverted edits by 144.124.32.130 (Talk) to last version by Ginger Ale) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
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 = | == Tags == | ||
=== Headers === | === Headers === | ||
{| border="1" cellpadding=" | |||
These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data. | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | |||
|- | |- | ||
! style="background:#efefef;" | Tag Name | ! style="background:#efefef;" | Tag Name | ||
Line 25: | Line 23: | ||
=== Art === | === Art === | ||
{| border="1" cellpadding=" | |||
These tags are directly related to the rendering of art for the entry. | |||
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0" | |||
|- | |- | ||
! style="background:#efefef;" | Tag Name | ! style="background:#efefef;" | Tag Name | ||
Line 47: | Line 48: | ||
= Example = | == 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> | <BonusArtInfo> | ||
<Type>ART_DEF_BONUS_ALUMINUM</Type> | <Type>ART_DEF_BONUS_ALUMINUM</Type> | ||
Line 56: | Line 60: | ||
<Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button> | <Button>,Art/Interface/Buttons/WorldBuilder/Aluminum.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,12</Button> | ||
</BonusArtInfo> | </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>