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
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
Torque Owner Ryan Mick
Red Witch Entertainment