Whats the bare minimum code for calling up a graphic as an item?
Here is what I have as an item.
Code:
<Ui2DAnimation item = "CornerUL">
<Cycle>true</Cycle>
<Frames>
<Texture>dj_pw.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>6</CX>
<CY>6</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>1000</Duration>
</Frames>
</Ui2DAnimation>
No I am curious, I was going to use a cut an paste like -
Code:
<Label
item="CornerUL">
<ScreenID>PW_CornerUL</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>6</CX>
<CY>6</CY>
</Size>
<Text>.</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignCenter>True</AlignCenter>
</Label>
What in here is extra?Seems to me like I could just use-
Code:
<Label
item="CornerUL">
<ScreenID>PW_CornerUL</ScreenID>
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>6</CX>
<CY>6</CY>
</Size>
<AlignCenter>True</AlignCenter>
</Label>
Would this work? I am using a 6*6 corner piece located at 0/0. Do I even need the <AlignCenter>? I am trying to minimize the code as much as possible and this would help a ton.