Civ4ArtDefines Bonus: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{| align="left"
|[[PythonCallbackDefines|Previous article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}<br><br>
= Summary =
= Summary =
This file declares all the art files, and art properties for the Resources.
This file declares all the art files, and art properties for the Resources.
Line 41: Line 47:
     <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>
{| align="left"
|[[Civ4ArtDefines_Building|Next article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}

Revision as of 21:09, 10 May 2009

Previous article
Back to XML Reference



Summary

This file declares all the art files, and art properties for the Resources.


Single Line Tags

Text Tags

Tag Name Description
Type Label that is used throughout all other XML files
NIF Location of .nif file
KFM Location of .kfm file
Button Icon, generally: ,path to icon,path to Atlas,x-coordinate,y-coordinate


Floating Point Tags

Tag Name Description
fScale Scale on Map
fInterfaceScale Multiply by fScale to get scale in Civilopedia


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