Game Development Community

GuiTextCtrl

by kcpdad · in Torque Game Engine · 02/27/2005 (4:34 am) · 2 replies

Hi
I want to add a HUD that lists kills and deaths during match. I was planning to use GUITextCtrl for the numbers since that will be updated as the game progresses. What about the labels, is it a waste to use hard coded text in GuiTextCtrl since they won't change?("Killls" "Deaths")? Or should I create a bitmap with that text and use that? Does it matter?
Thanks!

About the author

Hobbyist working on a tank game when time allows. Play the prototype at => http://www.sytrept.com/60tons/


#1
02/27/2005 (5:51 am)
Also, what is the difference between GuiMLTextCtrl and GuiTextCtrl? I can't find any mention why I would use one over the other and I can't tell from the code either.
Thanks
#2
02/27/2005 (6:16 am)
GuiMLTextCtrl has more formatting controls than GuiTextCtrl has. If you're planning to make a dialog out of either one of the controls, I'd use the first one. If you want to make a word or just a label (like you mentioned), then I would use the latter.