Civ4ArtDefines Building: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{| align="left"
|[[Civ4ArtDefines_Bonus|Previous article]]
|}
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|}<br><br>
=Summary=
Defines all the art files and art properties for the buildings (both in the city and in the civilopedia).
Defines all the art files and art properties for the buildings (both in the city and in the civilopedia).




=Single Line Tags=
==Tags==
===Text Tags===
===Headers===
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
! style="background:#efefef;" | Description
|-
|-
|Type || Label that is used throughout all other XML files
! BuildingArtInfo
|-
| The main bracket for each entry.
|NIF || Location of .nif file
|-
|KFM || Location of .kfm file
|-
|-
|Button || World Builder Icon.<br>
!Type
,path to icon,path to corresponding Atlas,#,#<br>
| Label that is used throughout all other XML files.
numbers are x,y location in the atlas.
|}
|}


===Boolean Tags===
 
{| border="1" cellpadding="2" cellspacing="0"
===Boolean===
{| border="1" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
! style="background:#efefef;" | Description
|-
|-
|bAnimated || Determines if it is animated or not.
!bAnimated
| Determines if it is animated or not.
|}
|}


===Floating Point Tags===
 
{| border="1" cellpadding="2" cellspacing="0"
===Art===
{| border="1" cellpadding="3" cellspacing="0"
|-
|-
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Tag Name
! style="background:#efefef;" | Description
! style="background:#efefef;" | Description
|-
|-
|fScale || Scale on Map
!fScale
| Scale on Map
|-
|-
|fInterfaceScale || multiply by fScale to get scale in Civilopedia
!fInterfaceScale
| multiply by fScale to get scale in Civilopedia.
|-
!NIF
| Location of the .nif file.
|-
!KFM
| Location of the .kfm file.
|-
!Button
| World Builder Icon.<br>
,path to icon,path to corresponding Atlas,#,#<br>
numbers are x,y location in the atlas.
|}
|}


=Example=
 
==Example==
  <BuildingArtInfo>
  <BuildingArtInfo>
     <Type>ART_DEF_BUILDING_PALACE</Type>
     <Type>ART_DEF_BUILDING_PALACE</Type>
Line 58: Line 63:
     <Button>,Art/Interface/Buttons/Buildings/Palace.dds,Art/Interface/Buttons/Buildings_Atlas.dds,6,5</Button>
     <Button>,Art/Interface/Buttons/Buildings/Palace.dds,Art/Interface/Buttons/Buildings_Atlas.dds,6,5</Button>
  </BuildingArtInfo>
  </BuildingArtInfo>
{| align="left"
|[[Civ4ArtDefines_Civilization|Next article]]
|}
{|align="right"
{|align="right"
|[[Civ4 XML Reference|Back to XML Reference]]
|[[Civ4 XML Reference|Back to XML Reference]]
|}
|}

Revision as of 20:55, 14 May 2009

Defines all the art files and art properties for the buildings (both in the city and in the civilopedia).


Tags

Headers

Tag Name Description
BuildingArtInfo The main bracket for each entry.
Type Label that is used throughout all other XML files.


Boolean

Tag Name Description
bAnimated Determines if it is animated or not.


Art

Tag Name Description
fScale Scale on Map
fInterfaceScale multiply by fScale to get scale in Civilopedia.
NIF Location of the .nif file.
KFM Location of the .kfm file.
Button World Builder Icon.

,path to icon,path to corresponding Atlas,#,#
numbers are x,y location in the atlas.


Example

<BuildingArtInfo>
   <Type>ART_DEF_BUILDING_PALACE</Type>
   <bAnimated>0</bAnimated>
   <fScale>1.0</fScale>
   <fInterfaceScale>0.5</fInterfaceScale>
   <NIF>Art/Structures/Buildings/Palace/Palace.nif</NIF>
   <KFM/>
   <Button>,Art/Interface/Buttons/Buildings/Palace.dds,Art/Interface/Buttons/Buildings_Atlas.dds,6,5</Button>
</BuildingArtInfo>
Back to XML Reference