Beispiel #1
0
        /// <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;
            }
        }
Beispiel #2
0
        /// <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;
            }
        }