strechable target window

Forum for posting custom UIs, portions of UIs, and HUD stuff using MQ's enhancements.

Moderator: MacroQuest Developers

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

strechable target window

Post by koad » Sat Nov 08, 2003 8:39 am

this is a target window that you can stretch. its something i found on eqgui and changed it abit, unfortunately i've lost the author's name and couldnt find it on eqgui. basically with the xml options sidl gives us, we can anchor elements to its parent and then autoupdate position and size.

use the border lines to resize, grab the black fake title bar to move the window itself. then select normal fade level 0 and you have a target HP bar any size you want, that is transparent with no borders.

so as long as you have it stretched big enough, the text of class and distance will fit. if you have it too small, stuff will overlap/be cut off

sample sizes:

Image

Code: Select all

<?xml version = "1.0"?>
<XML ID = "EQInterfaceDefinitionLanguage">
	<Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/>

	<Gauge item = "Target_HPText">
		<ScreenID>TargetHP</ScreenID>
		<Font>2</Font>
		<TextColor>
			<R>240</R>
			<G>240</G>
			<B>240</B>
		</TextColor>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>3</X>
			<Y>0</Y>
		</Location>
		<Size>
			<CX>108</CX>
			<CY>24</CY>
		</Size>
		<GaugeOffsetY>16</GaugeOffsetY>
		<TextOffsetX>3</TextOffsetX>
		<TextOffsetY>3</TextOffsetY>
		<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>105</G>
			<B>85</B>
		</LinesFillTint>
		<DrawLinesFill>true</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_Percent">
		<ScreenID>TargetPercentage</ScreenID>
		<EQType>29</EQType>
		<Font>3</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>82</X>
			<Y>3</Y>
		</Location>
		<Size>
			<CX>30</CX>
			<CY>14</CY>
		</Size>
		<Text>0</Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>0</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>true</AlignRight>
		<AlignLeft>false</AlignLeft>
	</Label>

	<TextureInfo item = "TargetBox.tga">
	<Size>
		<CX>128</CX>
		<CY>32</CY>
	</Size>
	</TextureInfo>

	<Ui2DAnimation item = "A_TargetBox">
	<Cycle>false</Cycle>
	<Frames>
	<Texture>TargetBox.tga</Texture>
	<Location>
		<X>6</X>
		<Y>2</Y>
	</Location>
	<Size>
		<CX>116</CX>
		<CY>60</CY>
	</Size>
	</Frames>
	</Ui2DAnimation>

	<StaticAnimation item = "A_TargetBoxStaticAnim">
		<ScreenID>A_TargetBoxStaticAnim</ScreenID>
		<Animation>A_TargetBox</Animation>
	</StaticAnimation>
	
	<!--target info labels-->
	<Label item ="Target_LevelLabel">
		<ScreenID>TargetLevelLabel</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>5</X>
			<Y>33</Y>
		</Location>
		<Size>
			<CX>40</CX>
			<CY>14</CY>
		</Size>
		<Text>Level</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_Level">
		<ScreenID>TargetLevel</ScreenID>
		<EQType>2000</EQType>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>24</X>
			<Y>33</Y>
		</Location>
		<Size>
			<CX>22</CX>
			<CY>14</CY>
		</Size>
		<Text>0</Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>0</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>true</AlignRight>
		<AlignLeft>false</AlignLeft>
	</Label>
	<Label item ="Target_DistLabel">
		<ScreenID>TargetDistLabel</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>36</X>
			<Y>33</Y>
		</Location>
		<Size>
			<CX>40</CX>
			<CY>14</CY>
		</Size>
		<Text>Dist</Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>255</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>true</AlignRight>
	</Label>
	<Label item ="Target_Dist">
		<ScreenID>TargetDist</ScreenID>
		<EQType>2003</EQType>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>74</X>
			<Y>33</Y>
		</Location>
		<Size>
			<CX>40</CX>
			<CY>14</CY>
		</Size>
		<Text>0</Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>0</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>true</AlignRight>
		<AlignLeft>false</AlignLeft>
	</Label>
	<Label item ="Target_ClassLabel">
		<ScreenID>TargetClassLabel</ScreenID>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>4</X>
			<Y>44</Y>
		</Location>
		<Size>
			<CX>40</CX>
			<CY>14</CY>
		</Size>
		<Text>Class</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_Class">
		<ScreenID>TargetClass</ScreenID>
		<EQType>2001</EQType>
		<Font>2</Font>
		<RelativePosition>true</RelativePosition>
		<Location>
			<X>32</X>
			<Y>44</Y>
		</Location>
		<Size>
			<CX>78</CX>
			<CY>14</CY>
		</Size>
		<Text>0</Text>
		<TextColor>
				<R>255</R>
				<G>255</G>
				<B>0</B>
		</TextColor>
		<NoWrap>true</NoWrap>
		<AlignCenter>false</AlignCenter>
		<AlignRight>true</AlignRight>
		<AlignLeft>false</AlignLeft>
	</Label>



	<Screen item = "TargetWindow">
		<ScreenID/>
		<RelativePosition>false</RelativePosition>
		<Location>
			<X>516</X>
			<Y>242</Y>
		</Location>
		<Size>
			<CX>126</CX>
			<CY>82</CY>
		</Size>
		<text> </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_HPText</Pieces>
		<Pieces>Target_Percent</Pieces>
		<Pieces>Target_LevelLabel</Pieces>
		<Pieces>Target_Level</Pieces>
		<Pieces>Target_DistLabel</Pieces>
		<Pieces>Target_Dist</Pieces>
		<Pieces>Target_ClassLabel</Pieces>
		<Pieces>Target_Class</Pieces>
                <Pieces>A_TargetBoxStaticAnim</Pieces>
	</Screen>

</XML>
Last edited by koad on Fri Jan 02, 2004 5:32 pm, edited 2 times in total.

Teh_ish
UI Guru
Posts: 168
Joined: Wed Nov 05, 2003 12:18 am

Post by Teh_ish » Sat Nov 08, 2003 8:45 am

Excellent example of the pure sexiness of SIDL :D

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Sun Nov 09, 2003 9:43 pm

hope you don't mind but I made some modifications to this. I've added lastattacked and direction to it. In order to make use of these you have to add some code to EQLib_MacroParser.cpp I think. if //$target(direction) and //$target(lastattacked) are not in that file, add these two things in the appropriet places.

Code: Select all

		     // $target(direction)    
    } else if (!strncmp("target(direction)",szVar,17)) { 
        i+=16; 
        if (!pTarget) { 
            strcat(szOutput,"NULL"); 
        } else { 
      CHAR szTemp[MAX_STRING] = {0}; 
      INT Angle = (INT)((atan2f(pChar->X - pTarget->X, pChar->Y - pTarget->Y) * 180.0f / PI + 360.0f) / 22.5f + 0.5f) % 16; 
      sprintf(szTemp,szHeadingShort[Angle]); 
        strcat(szOutput,szTemp); 
           }		// $target(lastattacked)
	} else if (!strncmp("target(lastattacked)",szVar,20)) {
        CHAR szTemp[MAX_STRING] = {0};
        i+=19;

        if (!pTarget) {
            strcat(szOutput,"NULL");
        } else {
			strcpy(szTemp,pTarget->pActorInfo->NameOfLastSuccessfulTargetHit);
        	strcat(szOutput,CleanupName(szTemp,FALSE));  
        }

the more modified target window code:

Code: Select all

<?xml version="1.0" encoding="us-ascii"?> 
<XML ID="EQInterfaceDefinitionLanguage"> 
  <Schema xmlns="EverQuestData" xmlns:dt="EverQuestDataTypes" /> 

  <Ui2DAnimation item="A_Stretch_Target_ThinTitleLeft"> 
    <Cycle>true</Cycle> 
    <Frames> 
      <Texture>window_pieces01.tga</Texture> 
      <Location> 
        <X>103</X> 
        <Y>113</Y> 
      </Location> 
      <Size> 
        <CX>13</CX> 
        <CY>4</CY> 
      </Size> 
      <Hotspot> 
        <X>0</X> 
        <Y>0</Y> 
      </Hotspot> 
      <Duration>1000</Duration> 
    </Frames> 
  </Ui2DAnimation> 
  <Ui2DAnimation item="A_Stretch_Target_ThinTitleMiddle"> 
    <Cycle>true</Cycle> 
    <Frames> 
      <Texture>window_pieces01.tga</Texture> 
      <Location> 
        <X>117</X> 
        <Y>113</Y> 
      </Location> 
      <Size> 
        <CX>2</CX> 
        <CY>4</CY> 
      </Size> 
      <Hotspot> 
        <X>0</X> 
        <Y>0</Y> 
      </Hotspot> 
      <Duration>1000</Duration> 
    </Frames> 
  </Ui2DAnimation> 
  <Ui2DAnimation item="A_Stretch_Target_ThinTitleRight"> 
    <Cycle>true</Cycle> 
    <Frames> 
      <Texture>window_pieces01.tga</Texture> 
      <Location> 
        <X>120</X> 
        <Y>113</Y> 
      </Location> 
      <Size> 
        <CX>13</CX> 
        <CY>4</CY> 
      </Size> 
      <Hotspot> 
        <X>0</X> 
        <Y>0</Y> 
      </Hotspot> 
      <Duration>1000</Duration> 
    </Frames> 
  </Ui2DAnimation> 

  <WindowDrawTemplate item="WDT_Stretch_Target_ThinTitle"> 
    <Background>wnd_bg_light_rock.tga</Background> 
    <VSBTemplate> 
      <UpButton> 
        <Normal>A_VSBUpNormal</Normal> 
        <Pressed>A_VSBUpPressed</Pressed> 
        <Flyby>A_VSBUpFlyby</Flyby> 
        <Disabled>A_VSBUpDisabled</Disabled> 
        <PressedFlyby>A_VSBUpPressedFlyby</PressedFlyby> 
      </UpButton> 
      <DownButton> 
        <Normal>A_VSBDownNormal</Normal> 
        <Pressed>A_VSBDownPressed</Pressed> 
        <Flyby>A_VSBDownFlyby</Flyby> 
        <Disabled>A_VSBDownDisabled</Disabled> 
        <PressedFlyby>A_VSBDownPressedFlyby</PressedFlyby> 
      </DownButton> 
      <Thumb> 
        <Top>A_VSBThumbTop</Top> 
        <Bottom>A_VSBThumbBottom</Bottom> 
        <Middle>A_VSBThumbMiddle</Middle> 
        <OverlapLeft>0</OverlapLeft> 
        <OverlapTop>0</OverlapTop> 
        <OverlapRight>0</OverlapRight> 
        <OverlapBottom>0</OverlapBottom> 
      </Thumb> 
      <MiddleTextureInfo>scrollbar_gutter.tga</MiddleTextureInfo> 
      <MiddleTint> 
        <Alpha>255</Alpha> 
        <R>128</R> 
        <G>128</G> 
        <B>128</B> 
      </MiddleTint> 
    </VSBTemplate> 
    <HSBTemplate> 
      <UpButton> 
        <Normal>A_HSBLeftNormal</Normal> 
        <Pressed>A_HSBLeftPressed</Pressed> 
        <Flyby>A_HSBLeftFlyby</Flyby> 
        <Disabled>A_HSBLeftDisabled</Disabled> 
        <PressedFlyby>A_HSBLeftPressedFlyby</PressedFlyby> 
      </UpButton> 
      <DownButton> 
        <Normal>A_HSBRightNormal</Normal> 
        <Pressed>A_HSBRightPressed</Pressed> 
        <Flyby>A_HSBRightFlyby</Flyby> 
        <Disabled>A_HSBRightDisabled</Disabled> 
        <PressedFlyby>A_HSBRightPressedFlyby</PressedFlyby> 
      </DownButton> 
      <Thumb> 
        <Right>A_HSBThumbRight</Right> 
        <Left>A_HSBThumbLeft</Left> 
        <Middle>A_HSBThumbMiddle</Middle> 
        <OverlapLeft>0</OverlapLeft> 
        <OverlapTop>0</OverlapTop> 
        <OverlapRight>0</OverlapRight> 
        <OverlapBottom>0</OverlapBottom> 
      </Thumb> 
      <MiddleTextureInfo>scrollbar_gutter.tga</MiddleTextureInfo> 
      <MiddleTint> 
        <Alpha>255</Alpha> 
        <R>128</R> 
        <G>128</G> 
        <B>128</B> 
      </MiddleTint> 
    </HSBTemplate> 
    <CloseBox> 
      <Normal>A_CloseBtnNormal</Normal> 
      <Pressed>A_CloseBtnPressed</Pressed> 
      <Flyby>A_CloseBtnFlyby</Flyby> 
      <Disabled>A_CloseBtnDisabled</Disabled> 
      <PressedFlyby>A_CloseBtnPressedFlyby</PressedFlyby> 
    </CloseBox> 
    <MinimizeBox> 
      <Normal>A_MinimizeBtnNormal</Normal> 
      <Pressed>A_MinimizeBtnPressed</Pressed> 
      <Flyby>A_MinimizeBtnFlyby</Flyby> 
      <Disabled>A_MinimizeBtnDisabled</Disabled> 
      <PressedFlyby>A_MinimizeBtnPressedFlyby</PressedFlyby> 
    </MinimizeBox> 
    <TileBox> 
      <Normal>A_TileBtnNormal</Normal> 
      <Pressed>A_TileBtnPressed</Pressed> 
      <Flyby>A_TileBtnFlyby</Flyby> 
      <Disabled>A_TileBtnDisabled</Disabled> 
      <PressedFlyby>A_TileBtnPressedFlyby</PressedFlyby> 
    </TileBox> 
    <Border> 
      <TopLeft>A_RoundedFrameWithTitleTopLeft</TopLeft> 
      <Top>A_RoundedFrameWithTitleTop</Top> 
      <TopRight>A_RoundedFrameWithTitleTopRight</TopRight> 
      <RightTop>A_RoundedFrameWithTitleRightTop</RightTop> 
      <Right>A_RoundedFrameRight</Right> 
      <RightBottom>A_RoundedFrameRightBottom</RightBottom> 
      <BottomRight>A_RoundedFrameBottomRight</BottomRight> 
      <Bottom>A_RoundedFrameBottom</Bottom> 
      <BottomLeft>A_RoundedFrameBottomLeft</BottomLeft> 
      <LeftTop>A_RoundedFrameWithTitleLeftTop</LeftTop> 
      <Left>A_RoundedFrameLeft</Left> 
      <LeftBottom>A_RoundedFrameLeftBottom</LeftBottom> 
      <OverlapLeft>0</OverlapLeft> 
      <OverlapTop>0</OverlapTop> 
      <OverlapRight>0</OverlapRight> 
      <OverlapBottom>0</OverlapBottom> 
    </Border> 
    <Titlebar> 
      <Right>A_Stretch_Target_ThinTitleRight</Right> 
      <Left>A_Stretch_Target_ThinTitleLeft</Left> 
      <Middle>A_Stretch_Target_ThinTitleMiddle</Middle> 
      <OverlapLeft>0</OverlapLeft> 
      <OverlapTop>0</OverlapTop> 
      <OverlapRight>0</OverlapRight> 
      <OverlapBottom>0</OverlapBottom> 
    </Titlebar> 
  </WindowDrawTemplate> 

  <Label item="Target_HP_Percent"> 
    <ScreenID>TargetHPPercent</ScreenID> 
    <EQType>29</EQType> 
    <Font>5</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>100</Text> 
    <TextColor> 
      <R>240</R> 
      <G>240</G> 
      <B>0</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>true</AlignRight> 
    <AlignLeft>false</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>14</TopAnchorOffset> 
    <LeftAnchorOffset>7</LeftAnchorOffset> 
    <RightAnchorOffset>12</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 
  <Gauge item="Target_HP"> 
    <ScreenID>TargetHP</ScreenID> 
    <RelativePosition>true</RelativePosition> 
    <Font>5</Font> 
    <TextColor> 
      <R>240</R> 
      <G>240</G> 
      <B>240</B> 
    </TextColor> 
    <GaugeOffsetY>1</GaugeOffsetY> 
    <TextOffsetX>5</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> 
      <Fill>A_GaugeFill</Fill> 
    </GaugeDrawTemplate> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>14</TopAnchorOffset> 
    <LeftAnchorOffset>7</LeftAnchorOffset> 
    <RightAnchorOffset>7</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Gauge> 
  
  <!--info labels--> 
  <Label item ="Target_Level"> 
    <ScreenID>TargetLevel</ScreenID> 
    <EQType>2000</EQType> 
    <Font>3</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>0</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>false</AlignRight> 
    <AlignLeft>true</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>2</TopAnchorOffset> 
    <LeftAnchorOffset>7</LeftAnchorOffset> 
    <RightAnchorOffset>7</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 
  <Label item ="Target_Class"> 
    <ScreenID>TargetClass</ScreenID> 
    <EQType>2001</EQType> 
    <Font>3</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>0</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>false</AlignRight> 
    <AlignLeft>true</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>2</TopAnchorOffset> 
    <LeftAnchorOffset>26</LeftAnchorOffset> 
    <RightAnchorOffset>7</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 
<Label item ="Target_LastAttacked"> 
    <ScreenID>TargetLastAttacked</ScreenID> 
    <EQType>2004</EQType> 
    <Font>3</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>0</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>false</AlignRight> 
    <AlignLeft>true</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>2</TopAnchorOffset> 
    <LeftAnchorOffset>105</LeftAnchorOffset> 
    <RightAnchorOffset>7</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 
  <Label item ="Target_Dist"> 
    <ScreenID>TargetDist</ScreenID> 
    <EQType>2003</EQType> 
    <Font>3</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>0</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>true</AlignRight> 
    <AlignLeft>false</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>2</TopAnchorOffset> 
    <LeftAnchorOffset>7</LeftAnchorOffset> 
    <RightAnchorOffset>7</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 
  <Label item ="Target_Dir"> 
    <EQType>9999</EQType> 
<TooltipReference>$target(direction)</TooltipReference>
    <Font>3</Font> 
    <RelativePosition>true</RelativePosition> 
    <Text>0</Text> 
    <TextColor> 
      <R>255</R> 
      <G>255</G> 
      <B>255</B> 
    </TextColor> 
    <NoWrap>true</NoWrap> 
    <AlignCenter>false</AlignCenter> 
    <AlignRight>true</AlignRight> 
    <AlignLeft>false</AlignLeft> 
    <AutoStretch>true</AutoStretch> 
    <TopAnchorOffset>2</TopAnchorOffset> 
    <LeftAnchorOffset>7</LeftAnchorOffset> 
    <RightAnchorOffset>45</RightAnchorOffset> 
    <BottomAnchorOffset>2</BottomAnchorOffset> 
    <RightAnchorToLeft>false</RightAnchorToLeft> 
    <BottomAnchorToTop>false</BottomAnchorToTop> 
    <TopAnchorToTop>true</TopAnchorToTop> 
    <LeftAnchorToLeft>true</LeftAnchorToLeft> 
  </Label> 


  <Screen item="TargetWindow"> 
    <ScreenID /> 
    <RelativePosition>false</RelativePosition> 
    <Location> 
      <X>516</X> 
      <Y>242</Y> 
    </Location> 
    <Size> 
      <CX>293</CX> 
      <CY>37</CY> 
    </Size> 
    <Text></Text> 
    <Style_VScroll>false</Style_VScroll> 
    <Style_HScroll>false</Style_HScroll> 
    <Style_Transparent>true</Style_Transparent> 
    <TooltipReference>Current Target</TooltipReference> 
    <DrawTemplate>WDT_Stretch_Target_ThinTitle</DrawTemplate> 
    <Style_Titlebar>true</Style_Titlebar> 
    <Style_Closebox>false</Style_Closebox> 
    <Style_Minimizebox>false</Style_Minimizebox> 
    <Style_Border>true</Style_Border> 
    <Style_Sizable>true</Style_Sizable> 
    <Pieces>Target_HP</Pieces> 
    <Pieces>Target_HP_Percent</Pieces> 
    <Pieces>Target_Level</Pieces> 
    <Pieces>Target_Class</Pieces> 
    <Pieces>Target_Dir</Pieces>
    <Pieces>Target_Dist</Pieces> 
    <Pieces>Target_LastAttacked</Pieces> 
  </Screen> 
</XML>

Bones
orc pawn
orc pawn
Posts: 27
Joined: Sat Sep 07, 2002 5:37 pm

Post by Bones » Tue Nov 11, 2003 2:11 pm

Would it be possible to modify this so that the cast bar shows up while casting... and also have pet health show up just under or over the target?

There's a target bar mod done by a designer named Geddine, that does this.. it's awesome for pet and caster classes. :)

I'd LOOOOOOOOOVE this feature if possible. :)

Neoplex
a lesser mummy
a lesser mummy
Posts: 45
Joined: Wed Nov 06, 2002 12:27 pm

Post by Neoplex » Tue Nov 11, 2003 9:33 pm

Can the code posted by Kint be cvsed in or is it something that can screw up the code?
Noobmonk01 says "Your kung fu is no match for me The tribunal!"
Autoattack on
The Tribunal begins to cast a spell
LOADING PLEASE WAIT ;)

xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 2:48 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 3:59 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:00 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:01 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:02 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:05 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:06 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:07 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:08 am


xyilla
naggy
naggy
Posts: 28724
Joined: Sun Feb 23, 2025 5:36 am

Re: strechable target window

Post by xyilla » Tue Oct 07, 2025 4:09 am