Page 1 of 2

First UI targetting test

Posted: Sat Nov 08, 2003 1:34 am
by koad
made a test window to play with this great new feature

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>3</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>84</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>

	<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>3</X>
			<Y>0</Y>
		</Location>
		<Size>
			<CX>108</CX>
			<CY>24</CY>
		</Size>
		<GaugeOffsetY>16</GaugeOffsetY>
		<TextOffsetX>-500</TextOffsetX>
		<TextOffsetY>-500</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>32</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_HP</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>

Posted: Sat Nov 08, 2003 1:38 am
by Plazmic
Yay... a UI author in the vicinity to give this a very nice test run ;)

Posted: Sat Nov 08, 2003 1:45 am
by Amadeus
talk about flirting with the enemy ....SOE is gonna freak out ...lol :)

Posted: Sat Nov 08, 2003 2:14 am
by kagonis
Should this work with latest zip?
Just tried it out, it just prints a lot of Unknown Label strings :)

Edit:
I don't know if this has anything to do with me having FilterMacro=2 in my mq.ini file, since otherwise EQ CTD's

Posted: Sat Nov 08, 2003 2:28 am
by koad
those are in-game shots with the IRC-latest_November 07 2003 20-48-16
as a side note, mqchat win works in that version as well

Posted: Sat Nov 08, 2003 2:58 am
by Plazmic
The newest versions do not have the fractional distance since they use $target(distance)

Posted: Sat Nov 08, 2003 10:51 am
by bob_the_builder
Just me that can't see the screenshot from koad?

Posted: Sat Nov 08, 2003 11:14 am
by Clone39
humm.. sorry for asking.. but how do you use that code? just copy paste in a new doc and rename it as EQUI_TargetWindow.xml ?

if not could you tell me the proper use for it... i really don't know what to do with it.. :oops:

thanks

Clone39

Posted: Sat Nov 08, 2003 11:16 am
by Teh_ish
Clone39 wrote:humm.. sorry for asking.. but how do you use that code? just copy paste in a new doc and rename it as EQUI_TargetWindow.xml ?

if not could you tell me the proper use for it... i really don't know what to do with it.. :oops:
Yes, that's what you do. Drop it in EQUI_TargetWindow.xml, and stick it in your UI folder. Will give you your nice new target window.. :)

Posted: Sat Nov 08, 2003 11:19 am
by Clone39
wow.. thanks for the quick answer.. hehe

Posted: Sat Nov 08, 2003 11:29 am
by Clone39
humm.. doesnt seem to work for me.. when i target any PC or NPC it says

LVL Unknown Class Unknown Dist Unknown

anyone knows what i'm doing wrong?

thanks

Posted: Sat Nov 08, 2003 11:42 am
by Teh_ish
Clone39 wrote:humm.. doesnt seem to work for me.. when i target any PC or NPC it says

LVL Unknown Class Unknown Dist Unknown

anyone knows what i'm doing wrong?

thanks
Do you have the latest version of MQ and is it running?

Posted: Sat Nov 08, 2003 12:25 pm
by Clone39
yes MQ is running.. i think i have the latest version.. ill re-download it to be sure.. thanks!

Posted: Sat Nov 08, 2003 12:40 pm
by Amadeus
I'm getting things like junknown or hlabel ...or crap like that instead of values.

I just checked in the .zip that's downloadable from eqmule's explanation and it looks like most of the latest changed files were from 11/6 or something like that.

Can someone please post which source files are vital to this feature so we know which we need to keep updated to make it work? I always hate doing a complete wipe of my own code because of custom things I end up having to redo all the time :(

Posted: Sat Nov 08, 2003 1:31 pm
by Teh_ish
At the moment I believe it's just hooks...