Page 1 of 1

Nice 'n Simple fully featured target window

Posted: Mon Jul 05, 2004 4:28 pm
by Goby
Modified this from Drumstixs Target window. Found his to be too large when i'm using 800x600 resolution ( use this resolution when i'm 2 boxing on one comp on 1280x1024 desktop)
The target window is approximately the same dimensions as the default UI.
Features in addition to default: level, class, distance and direction

Ripped the code for distance and direction from other UI's, i found it quite difficult to find working code for direction though, managed to find only one working one in the end (SARS mq mod) :smile:

Hope some of you find this useful as i have :smile:


Code: Select all

<?xml version="1.0" encoding="us-ascii"?>
<XML ID="EQInterfaceDefinitionLanguage">
  <Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" />
  <Label item="Target_Name">
    <ScreenID>A_Label</ScreenID>
    <Font>2</Font>
    <Text>Target</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <Size>
      <CX>150</CX>
      <CY>13</CY>
    </Size>
    <AlignCenter>False</AlignCenter>
    <Location>
      <X>1</X>
      <Y>1</Y>
    </Location>
    <EQType>28</EQType>
  </Label>
  
  <Label item ="MQ_TargetLevel">
      <ScreenID>TargetLevel</ScreenID>
      <EQType>9999</EQType>
      <Font>1</Font>
      <TooltipReference>${If[!${Target.ID}, ,${Target.Level}]}</TooltipReference>
      <RelativePosition>true</RelativePosition>
      <Location>
         <X>1</X>
         <Y>29</Y>
      </Location>
      <Size>
         <CX>70</CX>
         <CY>45</CY>
      </Size>
      <Text></Text>
      <TextColor>
            <R>255</R>
            <G>255</G>
            <B>255</B>
      </TextColor>
      <NoWrap>false</NoWrap>
      <AlignCenter>false</AlignCenter>
      <AlignRight>false</AlignRight>
  </Label>
  
  <Label item ="MQ_TargetClass">
      <ScreenID>TargetClass</ScreenID>
      <EQType>9999</EQType>
      <Font>1</Font>
      <TooltipReference>${If[!${Target.ID}, ,${Target.Class}]}</TooltipReference>
      <RelativePosition>true</RelativePosition>
      <Location>
         <X>12</X>
         <Y>29</Y>
      </Location>
      <Size>
         <CX>70</CX>
         <CY>45</CY>
      </Size>
      <Text></Text>
      <TextColor>
            <R>255</R>
            <G>255</G>
            <B>255</B>
      </TextColor>
      <NoWrap>false</NoWrap>
      <AlignCenter>false</AlignCenter>
      <AlignRight>false</AlignRight>
  </Label>

<Label item="MQ_TargetDistance"> 
      <ScreenID>WeightLabel</ScreenID> 
      <EQType>9999</EQType> 
      <TooltipReference>${Target.Distance.Int}</TooltipReference> 
      <Font>1</Font> 
      <RelativePosition>true</RelativePosition> 
      <Location> 
         <X>92</X> 
         <Y>29</Y> 
      </Location> 
      <Size> 
         <CX>40</CX> 
         <CY>14</CY> 
      </Size> 
      <TextColor> 
         <R>255</R> 
         <G>255</G> 
         <B>255</B> 
      </TextColor> 
      <NoWrap>true</NoWrap> 
      <AlignCenter>false</AlignCenter> 
      <AlignRight>false</AlignRight> 
      <AlignLeft>true</AlignLeft> 
   </Label> 

<Label item="Target_DistLabel">
    <ScreenID>HPPercLabel</ScreenID>
    <RelativePosition>true</RelativePosition>
    <Font>1</Font>
    <Location>
      <X>74</X>
      <Y>29</Y>
    </Location>
    <Size>
      <CX>20</CX>
      <CY>12</CY>
    </Size>
    <Text>Dist</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>false</AlignRight>
  </Label>

<Label item="MQ_TargetDirection"> 
    <ScreenID>MQ_TargetDirection</ScreenID> 
    <EQType>9999</EQType> 
    <Font>1</Font> 
    <TooltipReference>${Target.HeadingTo}</TooltipReference> 
    <RelativePosition>true</RelativePosition> 
    <Location> 
      <X>28</X> 
      <Y>17</Y> 
    </Location> 
    <Size> 
      <CX>25</CX> 
      <CY>15</CY> 
    </Size> 
    <Text>100</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>false</AlignRight> 
    <AlignLeft>true</AlignLeft> 
  </Label> 

  <Gauge item="Target_HP">
    <ScreenID>TargetHP</ScreenID>
    <Font>2</Font>
    <TextColor>
      <R>240</R>
      <G>240</G>
      <B>240</B>
    </TextColor>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>5</X>
      <Y>19</Y>
    </Location>
    <Size>
      <CX>116</CX>
      <CY>8</CY>
    </Size>
    <GaugeOffsetY>0</GaugeOffsetY>
    <TextOffsetX>-100</TextOffsetX>
    <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>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>
    <TextOffsetY>-100</TextOffsetY>
  </Gauge>
  <Label item="Target_HPLabel">
    <ScreenID>HPLabel</ScreenID>
    <EQType>29</EQType>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>55</X>
      <Y>16</Y>
    </Location>
    <Size>
      <CX>30</CX>
      <CY>15</CY>
    </Size>
    <Text>100</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>False</AlignCenter>
    <AlignRight>False</AlignRight>
  </Label>
  <Label item="Target_HPPercLabel">
    <ScreenID>HPPercLabel</ScreenID>
    <RelativePosition>true</RelativePosition>
    <Location>
      <X>78</X>
      <Y>16</Y>
    </Location>
    <Size>
      <CX>16</CX>
      <CY>12</CY>
    </Size>
    <Text>%</Text>
    <TextColor>
      <R>255</R>
      <G>255</G>
      <B>255</B>
    </TextColor>
    <NoWrap>true</NoWrap>
    <AlignCenter>false</AlignCenter>
    <AlignRight>false</AlignRight>
  </Label>
  <TextureInfo item="TargetBox.tga">
    <Size>
      <CX>130</CX>
      <CY>52</CY>
    </Size>
  </TextureInfo>
  <Ui2DAnimation item="A_TargetBox">
    <Cycle>false</Cycle>
    <Frames>
      <Texture>TargetBox.tga</Texture>
      <Location>
        <X>8</X>
        <Y>5</Y>
      </Location>
      <Size>
        <CX>195</CX>
        <CY>55</CY>
      </Size>
    </Frames>
  </Ui2DAnimation>
  <StaticAnimation item="A_TargetBoxStaticAnim">
    <ScreenID>A_TargetBoxStaticAnim</ScreenID>
    <Animation>A_TargetBox</Animation>
    <Size>
      <CX>1</CX>
      <CY>1</CY>
    </Size>
  </StaticAnimation>
  <Screen item="TargetWindow">
    <ScreenID />
    <RelativePosition>false</RelativePosition>
    <Location>
      <X>516</X>
      <Y>242</Y>
    </Location>
    <Size>
      <CX>125</CX>
      <CY>65</CY>
    </Size>
    <Text>Target</Text>
    <Style_VScroll>false</Style_VScroll>
    <Style_HScroll>false</Style_HScroll>
    <Style_Transparent>false</Style_Transparent>
    <TooltipReference>Your Current Target</TooltipReference>
    <DrawTemplate>WDT_Rounded</DrawTemplate>
    <Style_Titlebar>true</Style_Titlebar>
    <Style_Closebox>false</Style_Closebox>
    <Style_Minimizebox>false</Style_Minimizebox>
    <Style_Border>true</Style_Border>
    <Style_Sizable>false</Style_Sizable>
    <Pieces>Target_HP</Pieces>
    <Pieces>Target_HPLabel</Pieces>
    <Pieces>Target_HPPercLabel</Pieces>
    <Pieces>Target_DistLabel</Pieces>
    <Pieces>A_TargetBoxStaticAnim</Pieces>
    <Pieces>Target_Name</Pieces>
    <Pieces>MQ_TargetLevel</Pieces>
    <Pieces>MQ_TargetClass</Pieces>
    <Pieces>MQ_TargetDistance</Pieces>
    <Pieces>MQ_TargetDirection</Pieces>
  </Screen>
</XML>

Posted: Tue Jul 06, 2004 1:48 pm
by Drumstix42
Yep that correct.

Readme:

spawn

Members

heading HeadingTo -Heading player must travel in to reach this spawn