MQ2 and guage items...

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

Moderator: MacroQuest Developers

morannon
a lesser mummy
a lesser mummy
Posts: 57
Joined: Sun Nov 03, 2002 3:50 pm

MQ2 and guage items...

Post by morannon » Fri Apr 23, 2004 9:52 am

Im at work, so not able to try this just yet.

Given that we now have Me.TargetOfTarget, I'd like to include a ToT bar in my usual Target Window interface (duplicating the Target Info under the normal target stuff - ie name / class / %HP (as number) / HP bar)

Most of this would be fairly easy, since its just elements out of the spawn object.

Now, a target HP guage looks like :

Code: Select all

	<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>3</X>
			<Y>0</Y>
		</Location>
		<Size>
			<CX>115</CX>
			<CY>24</CY>
		</Size>
		<GaugeOffsetY>12</GaugeOffsetY>
		<TextOffsetX>16</TextOffsetX>
		<TextOffsetY>-1</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>255</R>
			<G>153</G>
			<B>204</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_Targetimage</EndCapLeft>
		</GaugeDrawTemplate>
	</Gauge>
Having an EQ type of 6 -- just using the EQ type for the real ToT HP guage, I somehow doubt will work, so was sort of hoping to be able to get MQ to fill this in.

Am I going to have any luck, or does MQ2Labels just supply text info, or can the UI convert no.s to a guage ?

Or failing that, has anyone had any luck getting custom gauges working ?