Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > Developer Discussion > XML modification help.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 01-03-2006, 06:06 PM   #1
AndrewDHokie
A Bat
 
Join Date: Jun 2004
Posts: 1
Default Formating spell name location

I am tring to add the name of the spell to this casting bar.

I got the spell name to come up correctly in game but it is coming up over the target name and not over the spell bar where I would like it to. The part of the code I am confused on is label at the bottem the rest is included for reference.

Any help would be appreciated.

(This is NOT my mod - I am attempting to add the spell name to it only)

Thanks,


<!-- ================================================== ========== -->
<!-- Target HP -->
<!-- ================================================== ========== -->
<Gauge item = "Target_HP">
<ScreenID>TargetHP</ScreenID>
<Font>3</Font>
<TextColor>
<R>240</R>
<G>240</G>
<B>240</B>
</TextColor>
<RelativePosition>true</RelativePosition>
<Location>
<X>4</X>
<Y>3</Y>
</Location>
<Size>
<CX>108</CX>
<CY>28</CY>
</Size>
<GaugeOffsetY>20</GaugeOffsetY>
<GaugeOffsetX>0</GaugeOffsetX>
<TextOffsetX>0</TextOffsetX>
<FillTint>
<R>240</R>
<G>0</G>
<B>0</B>
</FillTint>
<LinesFillTint>
<R>220</R>
<G>220</G>
<B>0</B>
</LinesFillTint>
<DrawLinesFill>false</DrawLinesFill>
<EQType>6</EQType>
<GaugeDrawTemplate>
<Background>A_GaugeBackground</Background>
<Fill>A_GaugeFill</Fill>
<!-- <Lines>A_GaugeLines</Lines> -->
<!-- <LinesFill>A_GaugeLinesFill</LinesFill> -->
<EndCapLeft>A_GaugeEndCapLeft</EndCapLeft>
<EndCapRight>A_GaugeEndCapRight</EndCapRight>
</GaugeDrawTemplate>
</Gauge>

<Label item ="Target_HPLabel">
<ScreenID>HPLabel</ScreenID>
<EQType>29</EQType>
<Font>2</Font>
<Location>
<X>40</X>
<Y>18</Y>
</Location>
<Size>
<CX>24</CX>
<CY>14</CY>
</Size>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<AlignRight>true</AlignRight>
</Label>

<Label item ="Target_HPPercLabel">
<ScreenID>HPPercLabel</ScreenID>
<Font>2</Font>
<Location>
<X>66</X>
<Y>18</Y>
</Location>
<Size>
<CX>14</CX>
<CY>14</CY>
</Size>
<Text>%</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
</Label>

<!-- ================================================== ========== -->
<!-- Casting Bar -->
<!-- ================================================== ========== -->

<Gauge item = "Target_CastingBar">
<EQType>7</EQType>
<Location>
<X>4</X>
<Y>34</Y>
</Location>
<Size>
<CX>108</CX>
<CY>10</CY>
</Size>
<TextOffsetY>-50</TextOffsetY>
<GaugeOffsetX>0</GaugeOffsetX>
<GaugeOffsetY>0</GaugeOffsetY>
<FillTint>
<R>240</R>
<G>0</G>
<B>240</B>
</FillTint>
<DrawLinesFill>false</DrawLinesFill>
<GaugeDrawTemplate>
<Background>A_GaugeBackground</Background>
<Fill>A_GaugeFill</Fill>
<!-- <Lines>A_GaugeLines</Lines> -->
<!-- <LinesFill>A_GaugeLinesFill</LinesFill> -->
<EndCapLeft>A_GaugeEndCapLeft</EndCapLeft>
<EndCapRight>A_GaugeEndCapRight</EndCapRight>
</GaugeDrawTemplate>
</Gauge>

************************************************** ****
************************************************** ****
This is the problem area - Please help with format
************************************************** ****
************************************************** ****
- <Label item="Target_SpellName">
<ScreenID>SpellName</ScreenID>
<EQType>134</EQType>
<Font>2</Font>
<RelativePosition>true</RelativePosition>
<AutoStretch>true</AutoStretch>
<LeftAnchorOffset>1</LeftAnchorOffset>
<TopAnchorOffset>2</TopAnchorOffset>
<RightAnchorOffset>-2</RightAnchorOffset>
<BottomAnchorOffset>14</BottomAnchorOffset>
<TopAnchorToTop>true</TopAnchorToTop>
<BottomAnchorToTop>true</BottomAnchorToTop>
<LeftAnchorToLeft>true</LeftAnchorToLeft>
<RightAnchorToLeft>false</RightAnchorToLeft>
- <TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<AlignLeft>true</AlignLeft>
</Label>
AndrewDHokie is offline   Reply With Quote
Old 01-03-2006, 10:17 PM   #2
Wymp
A Shissar Disciple
 
Wymp's Avatar
 
Join Date: Jul 2002
Posts: 146
Interface Author - Click to view interfaces
Default

Try taking all that "anchor offset" crap out of there and use the old format instead, like ....

<Location>
<X>##</X>
<Y>##</Y>
</Location>
<Size>
<CX>##</CX>
<CY>##</CY>
</Size>



It should work fine in that window doing it either way, but this is much easier to understand and adjust.

I really hate that new way they're doing window code. It can make some quite simple ideas turn into a real pain in the ass.
Wymp is offline   Reply With Quote
Reply




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 12:31 AM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI