Page 1 of 1

Hud Question

Posted: Sun Jul 18, 2004 3:24 pm
by JimJohnson
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>

Posted: Sun Jul 18, 2004 3:28 pm
by s16z
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}

Posted: Sun Jul 18, 2004 3:34 pm
by JimJohnson
yea that works dont know why didnt see it earlier

Posted: Sun Jul 18, 2004 4:36 pm
by Drumstix42
Lol. I have to say. I think that's the first time I've ever seen ${Me.ID} in a conditional statement. :P

Posted: Sun Jul 18, 2004 4:54 pm
by JimJohnson
wasnt mine was just part of someone elses hud I used to get started.