First UI targetting test

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

First UI targetting test

Post by koad » Sat Nov 08, 2003 1:34 am

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>
Last edited by koad on Fri Jan 02, 2004 5:30 pm, edited 2 times in total.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sat Nov 08, 2003 1:38 am

Yay... a UI author in the vicinity to give this a very nice test run ;)
- Plazmic

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sat Nov 08, 2003 1:45 am

talk about flirting with the enemy ....SOE is gonna freak out ...lol :)

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Sat Nov 08, 2003 2:14 am

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

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

Post by koad » Sat Nov 08, 2003 2:28 am

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

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sat Nov 08, 2003 2:58 am

The newest versions do not have the fractional distance since they use $target(distance)
- Plazmic

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Sat Nov 08, 2003 10:51 am

Just me that can't see the screenshot from koad?

User avatar
Clone39
a ghoul
a ghoul
Posts: 91
Joined: Mon Jul 07, 2003 7:26 pm
Location: Montreal, Canada

Post by Clone39 » Sat Nov 08, 2003 11:14 am

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

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

Post by Teh_ish » Sat Nov 08, 2003 11:16 am

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.. :)

User avatar
Clone39
a ghoul
a ghoul
Posts: 91
Joined: Mon Jul 07, 2003 7:26 pm
Location: Montreal, Canada

Post by Clone39 » Sat Nov 08, 2003 11:19 am

wow.. thanks for the quick answer.. hehe

User avatar
Clone39
a ghoul
a ghoul
Posts: 91
Joined: Mon Jul 07, 2003 7:26 pm
Location: Montreal, Canada

Post by Clone39 » Sat Nov 08, 2003 11:29 am

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

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

Post by Teh_ish » Sat Nov 08, 2003 11:42 am

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?

User avatar
Clone39
a ghoul
a ghoul
Posts: 91
Joined: Mon Jul 07, 2003 7:26 pm
Location: Montreal, Canada

Post by Clone39 » Sat Nov 08, 2003 12:25 pm

yes MQ is running.. i think i have the latest version.. ill re-download it to be sure.. thanks!

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Sat Nov 08, 2003 12:40 pm

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 :(

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

Post by Teh_ish » Sat Nov 08, 2003 1:31 pm

At the moment I believe it's just hooks...