Coloring text in gui's
by Vijay Myneni · in Torque Game Engine · 01/06/2005 (5:58 pm) · 2 replies
Hello,
I have a line of text in a HUD, and I want part of the text to be a different color sometimes. Like maybe I want to display the character's name as "Name: Chuck" and have the "Chuck" part display in red when he's getting damaged or something. Is there any way to do this? All I can see to do is change the profile on the GUI element, but then it affects the whole element. Any thoughts?
Thanks,
Vijay
I have a line of text in a HUD, and I want part of the text to be a different color sometimes. Like maybe I want to display the character's name as "Name: Chuck" and have the "Chuck" part display in red when he's getting damaged or something. Is there any way to do this? All I can see to do is change the profile on the GUI element, but then it affects the whole element. Any thoughts?
Thanks,
Vijay
About the author
Torque Owner Vijay Myneni
fontColors[1] = "0 255 0";
and "\c1" thing. Torque rocks.