Civ4ArtDefines Bonus: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
The '''Civ4ArtDefines_Bonus''' file declares all the art files, and art properties, for each of the Resources.
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 ===
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"
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-
Line 18: Line 23:


=== Art ===
=== Art ===
These tags are directly related to the rendering of art for the entry.
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
{| border="1" style="text-align:left" cellpadding="3" cellspacing="0"
|-
|-

Revision as of 19:50, 17 May 2009

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

<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>
Back to XML Reference