/// <summary> /// Draw a box from GUI content /// </summary> public static void DrawBox(Rectangle rect, GUIContentBoxType type) { switch (type) { case GUIContentBoxType.Box: DrawBox(rect, type, Color.White); break; case GUIContentBoxType.Button: DrawBox(rect, type, Button_ColorMiddleBlend); break; } }
/// <summary> /// Draw a box from GUI content /// </summary> public static void DrawBox(Rectangle rect, GUIContentBoxType type, Color color) { switch (type) { case GUIContentBoxType.Box: DrawBox(rect, Box_TopLeft, Box_Top, Box_TopRight, Box_Left, Box_Mid, Box_Right, Box_BottomLeft, Box_Bottom, Box_BottomRight, color); break; case GUIContentBoxType.Button: DrawBox(rect, Button_TopLeft, Button_Top, Button_TopRight, Button_Left, Button_Mid, Button_Right, Button_BottomLeft, Button_Bottom, Button_BottomRight, color); break; } }