Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > Tutorials & Info. > XML Tutorials & Info.
User Name
Password

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-16-2004, 05:06 AM   #1
qintanyon
A Fire Beetle
 
Join Date: Jul 2004
Posts: 3
Lightbulb Adding HoTT gauge

After searching here to find a way to add HoTT to my main target window with no luck I went and figured it out myself. I fugured I would share what I came up with. For starters this is code modified from Remelio's excellent work, so the main code credit goes to him.

Here is what it looks like:


(I added the HoTT directly under my normal target, you may put it where you wish)


The following code goes into the xml of the window you want this gauge displayed in. I commented each section so you know what it's doing.

Code:
<!--************The % numeral****************--> <Label item ="PW_TTarget"> <ScreenID>TTargetLabel</ScreenID> <EQType>120</EQType> <Font>1</Font> <RelativePosition>true</RelativePosition> <Location> <X>115</X> <Y>34</Y> </Location> <Size> <CX>15</CX> <CY>10</CY> </Size> <Text></Text> <TextColor> <R>255</R> <G>255</G> <B>255</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>true</AlignRight> </Label> <!--************The % symbol****************--> <Label item ="PW_TTarget%"> <ScreenID>TTargetLabel%</ScreenID> <Font>0</Font> <RelativePosition>true</RelativePosition> <Location> <X>132</X> <Y>34</Y> </Location> <Size> <CX>8</CX> <CY>10</CY> </Size> <Text>%</Text> <TextColor> <R>0</R> <G>0</G> <B>0</B> </TextColor> <NoWrap>true</NoWrap> <AlignCenter>false</AlignCenter> <AlignRight>false</AlignRight> </Label> <!--*** The colored sphere under the % symbol *********--> <!--*** (optional, however if you remove it you may ******--> <!--*** need to adjust the color of the % symbol ********--> <Gauge item = "PW_SphereTTargetY"> <ScreenID>TSphereGauge</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>130</X> <Y>34</Y> </Location> <Size> <CX>30</CX> <CY>10</CY> </Size> <GaugeOffsetX>-10</GaugeOffsetX> <GaugeOffsetY>0</GaugeOffsetY> <TextOffsetY>-50</TextOffsetY> <FillTint> <R>235</R> <G>232</G> <B>64</B> </FillTint> <EQType>27</EQType> <GaugeDrawTemplate> <Background>RedSphere</Background> <Fill>YellowSphere</Fill> </GaugeDrawTemplate> </Gauge> <Gauge item = "PW_SphereTTargetG"> <ScreenID>TSphereGauge</ScreenID> <RelativePosition>true</RelativePosition> <Location> <X>130</X> <Y>34</Y> </Location> <Size> <CX>20</CX> <CY>10</CY> </Size> <GaugeOffsetX>-20</GaugeOffsetX> <GaugeOffsetY>0</GaugeOffsetY> <TextOffsetY>-50</TextOffsetY> <FillTint> <R>0</R> <G>173</G> <B>99</B> </FillTint> <EQType>27</EQType> <GaugeDrawTemplate> <Fill>GreenSphere</Fill> </GaugeDrawTemplate> </Gauge> <!--************The HoTT gauge****************--> <Gauge item = "PW_TTargetGauge"> <ScreenID>TTargetHP</ScreenID> <Font>3</Font> <TextColor> <R>240</R> <G>240</G> <B>240</B> </TextColor> <RelativePosition>true</RelativePosition> <Location> <X>3</X> <Y>20</Y> </Location> <Size> <CX>108</CX> <CY>24</CY> </Size> <GaugeOffsetY>16</GaugeOffsetY> <TextOffsetY>2</TextOffsetY> <!-- This places the Target name --> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <TooltipReference/> <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>27</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> <!--*************************************-->


You will also need to place the following in the pieces section near the bottom of the xml file.

Code:
<Pieces>PW_TTarget</Pieces> <Pieces>PW_SphereTTargetY</Pieces> <Pieces>PW_SphereTTargetG</Pieces> <Pieces>PW_TTarget%</Pieces> <Pieces>PW_TTargetGauge</Pieces>



To make everything line up correctly in whatever window you put this in you will most likely need to adjust the numbers in the sections that look like this:
Code:
<Location> <X>##</X> <Y>##</Y> </Location>



Hope this helped someone. Have a great day.

- Qint
qintanyon is offline   Reply With Quote
 




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 06:48 AM.


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