quick buff window question...

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

Moderator: MacroQuest Developers

ucfusion
orc pawn
orc pawn
Posts: 24
Joined: Mon Mar 15, 2004 2:14 am

quick buff window question...

Post by ucfusion » Mon May 03, 2004 10:30 pm

I currently using delta UI and have it adapted for the old parm version of buff window... heres the code i have so far that i found on the boards...

Code: Select all

<Label item="BW_Buff0_Label">
		<ScreenID>BW_Buff0_Label</ScreenID>
		<Font>1</Font>
		<EQType>9999</EQType> 
 <TooltipReference>${If[${Bool[${Me.Buff[1]}]},${Me.Buff[1].Duration.Time},]}</TooltipReference> 
		<Location>
			<X>1</X>
			<Y>7</Y>
		</Location>
		<Size>
			<CX>135</CX>
			<CY>22</CY>
		</Size>
		<TextColor>
			<R>220</R>
			<G>220</G>
			<B>220</B>
		</TextColor>
		<AlignRight>true</AlignRight>
	</Label>
what would i have to do to this code to make it so that it shows the label too... my noobish self copied from the guys post that just wanted the time not the labels...

thanks.

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Mon May 03, 2004 11:42 pm

Well the best way is to leave the normal EQ type for buff name. Then add a new label for the duration of each buff. That way you can cut the code you have in half and it never bothers the label of the Buff. However, if you choice not to do that then I think this is how you would get the label and duration to show.

Code: Select all

<TooltipReference>${If[${Bool[${Me.Buff[1]}]}, ${Me.Buff[1].Name}, "" ,${Me.Buff[1].Duration.Time},]}</TooltipReference> 

SlowAndStupid
orc pawn
orc pawn
Posts: 23
Joined: Sun May 02, 2004 10:23 pm

Post by SlowAndStupid » Tue May 04, 2004 12:42 am

I had been previously using

Code: Select all

<TooltipReference>${If[${Bool[${Me.Buff[7]}]},${Me.Buff[7]} ${Me.Buff[7].Duration.Time},]}</TooltipReference>