View Single Post
Old 08-14-2002, 04:53 AM   #6
Deadman
A Ghoul
 
Join Date: Aug 2002
Posts: 10
Interface Author - Click to view interfaces
Default

Ok id like to insert new animation settings for my spell gems in the castspellwnd. But I am not to sure where or how it would go. I have changed the animation file and it works like I want to but makes it difficult to distribute my mods. Any suggestions on how to add it to this window.

This is the file info I have for one spell gem


<SpellGem item = "CSPW_Spell0">
<ScreenID>CSPW_Spell0</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>30</CY>
</Size>
<SpellGemDrawTemplate>
<Holder>A_SpellGemHolder</Holder>
<Background>A_SpellGemBackground</Background>
<Highlight>A_SpellGemHighlight</Highlight>
</SpellGemDrawTemplate>
<SpellIconOffsetX>5</SpellIconOffsetX>
<SpellIconOffsetY>0</SpellIconOffsetY>
</SpellGem>

This is the animation file settings.

<TextureInfo item = "gemicons01.tga">
<Size>
<CX>320</CX>
<CY>320</CY>
</Size>
</TextureInfo>
<TextureInfo item = "gemicons02.tga">
<Size>
<CX>320</CX>
<CY>320</CY>
</Size>
</TextureInfo>

<Ui2DAnimation item = "A_SpellGems">
<Cycle>false</Cycle>
<Grid>true</Grid>
<Vertical>false</Vertical>
<CellHeight>30</CellHeight>
<CellWidth>30</CellWidth>
<Frames>
<Texture>gemicons01.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>320</CX>
<CY>320</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
<Frames>
<Texture>gemicons02.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>320</CX>
<CY>320</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>

I think what is confusing me is that I can see where it builds the gem but that part does not contain "A_SpellGems" So if I create a new definition for it in the castspellwnd how is it going to know how to use it instead? Id love to package this all in one file.
Deadman is offline   Reply With Quote