Game Development Community

How to you Draw a border around a GUIStyle

by Harrison Brock · in Torque X 2D · 12/10/2007 (11:50 am) · 2 replies

Could someone help me on how to Draw a border around a GUIStyle?

Where is what I have so far:

GUIStyle myGUIStyle = new GUIStyle();
myGUIStyle.HasBorder = true;
myGUIStyle.BorderColor =   // I now this takes a CustomColor.ColorBas. But I'm not sure how this works

Thanks for any help

#1
05/22/2008 (12:33 pm)
I dont think that BorderStyle is currently working. Whenever I try it, it does the exact thing as FillColor
#2
05/24/2008 (8:45 pm)
MyGUIStyle.BorderColor[CustomColor.ColorBase] = Color.Red;



Yep, there's a bug in the code that draws the rectangular border. See

http://www.garagegames.com/mg/forums/result.thread.php?qt=72077