TextColor
by David Everhart · in Torque X 2D · 01/25/2008 (8:38 pm) · 2 replies
In 1.0, you could set a GUITextStyles TextColor. In 1.5, it is a read only property. Anyone know how to set it in 1.5?
#2
01/27/2008 (12:50 pm)
Thanks Scott, that worked like a champ! After digging into the source, it looks like the ColorCollection it returns is indeed a settable and gettable property. Appreciate the help :)
Torque Owner Scott Goodwin
GUITextStyle myStyle = new GUITextStyle();
myStyle.FontType = "Arial18";
myStyle.TextColor[CustomColor.ColorBase] = Microsoft.Xna.Framework.Graphics.Color.Yellow;