Civ4ArtDefines Building: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 43: Line 43:


=Example=
=Example=
    <BuildingArtInfo>
<BuildingArtInfo>
        <Type>ART_DEF_BUILDING_PALACE</Type>
    <Type>ART_DEF_BUILDING_PALACE</Type>
        <bAnimated>0</bAnimated>
    <bAnimated>0</bAnimated>
        <fScale>1.0</fScale>
    <fScale>1.0</fScale>
        <fInterfaceScale>0.5</fInterfaceScale>
    <fInterfaceScale>0.5</fInterfaceScale>
        <NIF>Art/Structures/Buildings/Palace/Palace.nif</NIF>
    <NIF>Art/Structures/Buildings/Palace/Palace.nif</NIF>
        <KFM/>
    <KFM/>
        <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>

Revision as of 20:50, 10 May 2009

Summary

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


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 World Builder Icon.

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

Boolean Tags

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

Floating Point Tags

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

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>