Hiding Health Bar/Mana Bar GUIs?
by Chris · in Torque Game Engine · 05/11/2009 (8:40 am) · 7 replies
Hey guys, I know this is a pretty newbie question. Basically the game I'm working on we do not need either the health bar or the mana bar. In what file does it push these GUIs to the canvas? I can't seem to find it anywhere. Thanks for any help!
#2
05/11/2009 (10:37 am)
There are two GuiHealthBarHud(){...} controls in "~/client/ui/playGui.gui" -- one for the health bar and one for the energy/mana bar. Simply delete them and they'll be gone, but be careful not to remove portions of the other controls.
#3
05/11/2009 (10:40 am)
And since you're posting in the TGE forums I assume that you're using TGE, you'll also have to delete the playGui.gui.dso file in order for it to properly re-generate with your changes.
#4
05/11/2009 (12:27 pm)
Actually, it's not necessary to delete the DSO - I just tried this and the DSO was automatically recompiled after my changes to the GUI file.
#5
@Chris: I forgot about it but there are also two GuiBitmapCtrl() controls that are the graphic images for the healthbar frame(s) -- I forgot to mention those two earlier. They're towards the end of that same gui file and both have this line:
05/11/2009 (12:58 pm)
@Daniel: Cool! I had to try that myself, I didn't know it could do that for the Gui files. So it might be possible (maybe) to hook up the script .dso generation to do the same.... hmm might have to try that sometime.@Chris: I forgot about it but there are also two GuiBitmapCtrl() controls that are the graphic images for the healthbar frame(s) -- I forgot to mention those two earlier. They're towards the end of that same gui file and both have this line:
bitmap = "./healthBar";Remove those two controls along with the previously mentioned healthbar control(s).
#6
What ou need to remember to delete are config.cs files if you want to make changes to default.bind.
05/11/2009 (10:21 pm)
I just verified that it works for script files as well. No need to delete DSOs ever - if you've edited any file, the DSO is recompiled next time you start Torque.What ou need to remember to delete are config.cs files if you want to make changes to default.bind.
#7
05/11/2009 (10:53 pm)
Come to think of it, it does seem that most peoples' DSO problems stemmed from not deleting the configs when changing the binds.... and all that time I used TGE I just assumed deleting DSOs was necessary -- I actually had a batch file that cleaned out all prefs, DSOs, ML files, and launched the game for me. Learn something new everyday :D
Torque 3D Owner Edward