Game Development Community

Adding to guiHealthBarHud.cc

by Infinitum3D · in Torque Game Engine · 08/04/2008 (6:52 am) · 2 replies

DISCLAIMER: I am NOT a programmer :)

I'm looking at guiHealthBarHud.cc and I'd like to add a variable for Stamina (different than Energy).

The file is not very well commented for a newbie (especially a non-programmer).

Can I just duplicate all the mDisplayEnergy stuff like;
bool mDisplayStamina
and check the box in the editor to make it True?

What other changes are needed? Obviously a recompile, but am I leaving out anything important?

Thanks,
Tony

#1
08/04/2008 (7:28 am)
Tony, try this resource guiAdvBarHud. It has built in generic modes and can display the bar in different ways including animations.
#2
08/04/2008 (8:52 am)
Thanks Ryan! This is perfect!

Now I'm off to learn more about DMLs...

Tony