Hud Question

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

Moderator: MacroQuest Developers

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Hud Question

Post by JimJohnson » Sun Jul 18, 2004 3:24 pm

Anyway to condence this to one line and have it centered like a UI?

Code: Select all

MeData1a=3,5,158,255,255,255,${If[${Me.ID},Hit Points:,]}
MeData1b=3,78,158,255,255,255,${If[${Me.ID},${Me.CurrentHPs},]}
MeData1c=3,103,158,255,255,255,${If[${Me.ID},/,]}
MeData1d=3,108,158,255,255,255,${If[${Me.ID},${Me.MaxHPs},]}
atm it displays
Health: xxxxx/xxxxx


but i only alloted 4 spaces so the last x and the / overlap each other. Just wondering if you can center huds using <alinment> center<Alinment>

s16z
a ghoul
a ghoul
Posts: 97
Joined: Thu Apr 01, 2004 12:03 pm

Post by s16z » Sun Jul 18, 2004 3:28 pm

Question: Why the conditional? When would you ever not have an ID?

That said, why don't you use:

Code: Select all

MeData1=3,5,158,255,255,255,Hit Points: ${Me.CurrentHPs}/${Me.MaxHPs}

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Sun Jul 18, 2004 3:34 pm

yea that works dont know why didnt see it earlier

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Sun Jul 18, 2004 4:36 pm

Lol. I have to say. I think that's the first time I've ever seen ${Me.ID} in a conditional statement. :P

JimJohnson
a grimling bloodguard
a grimling bloodguard
Posts: 1299
Joined: Sat Oct 11, 2003 6:00 am

Post by JimJohnson » Sun Jul 18, 2004 4:54 pm

wasnt mine was just part of someone elses hud I used to get started.