Beispiel #1
0
 public static IRectGUIDrawer DrawScrollView(this IRectGUIDrawer self, Action act, Rect position, ref Vector2 scrollPosition, Rect viewRect)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect);
     if (act != null)
     {
         act();
     }
     GUI.EndScrollView(); return(self);
 }
Beispiel #2
0
 public static IRectGUIDrawer DrawScrollView(this IRectGUIDrawer self, Action act, Rect position, ref Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect, alwaysShowHorizontal, alwaysShowVertical, horizontalScrollbar, verticalScrollbar);
     if (act != null)
     {
         act();
     }
     GUI.EndScrollView(); return(self);
 }
Beispiel #3
0
 public static IRectGUIDrawer DrawGroup(this IRectGUIDrawer self, Action act, Rect position, GUIStyle style)
 {
     GUI.BeginGroup(position, style);
     if (act != null)
     {
         act();
     }
     GUI.EndGroup(); return(self);
 }
Beispiel #4
0
        public static IRectGUIDrawer RepeatButton(this IRectGUIDrawer self, Action listener, Rect position, GUIContent content, GUIStyle style)
        {
            bool bo = GUI.RepeatButton(position, content, style);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Beispiel #5
0
 public static IRectGUIDrawer DrawClip(this IRectGUIDrawer self, Action act, Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUI.BeginClip(position, scrollOffset, renderOffset, resetOffset);
     if (act != null)
     {
         act();
     }
     GUI.EndClip();
     return(self);
 }
Beispiel #6
0
 public static IRectGUIDrawer DrawClip(this IRectGUIDrawer self, Action act, Rect position)
 {
     GUI.BeginClip(position);
     if (act != null)
     {
         act();
     }
     GUI.EndClip();
     return(self);
 }
Beispiel #7
0
        public static IRectGUIDrawer Button(this IRectGUIDrawer self, Action listener, Rect position, Texture image, GUIStyle style)
        {
            bool bo = GUI.Button(position, image, style);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Beispiel #8
0
        public static IRectGUIDrawer RepeatButton(this IRectGUIDrawer self, Action listener, Rect position, string text)
        {
            bool bo = GUI.RepeatButton(position, text);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Beispiel #9
0
        public static IRectGUIDrawer Button(this IRectGUIDrawer self, Action listener, Rect position, GUIContent content)
        {
            bool bo = GUI.Button(position, content);

            if (bo && listener != null)
            {
                listener();
            }

            return(self);
        }
Beispiel #10
0
 public static IRectGUIDrawer BeginClip(this IRectGUIDrawer self, Rect position)
 {
     GUI.BeginClip(position);
     return(self);
 }
Beispiel #11
0
 public static IRectGUIDrawer BeginClip(this IRectGUIDrawer self, Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUI.BeginClip(position, scrollOffset, renderOffset, resetOffset);
     return(self);
 }
Beispiel #12
0
 public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, Texture image)
 {
     GUI.BeginGroup(position, image);
     return(self);
 }
Beispiel #13
0
 public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, GUIContent content)
 {
     GUI.BeginGroup(position, content);
     return(self);
 }
Beispiel #14
0
 public static IRectGUIDrawer EndClip(this IRectGUIDrawer self)
 {
     GUI.EndClip();
     return(self);
 }
Beispiel #15
0
 public static IRectGUIDrawer VerticalScrollbar(this IRectGUIDrawer self, Rect position, ref float value, float size, float topValue, float bottomValue)
 {
     value = GUI.VerticalScrollbar(position, value, size, topValue, bottomValue); return(self);
 }
Beispiel #16
0
 public static IRectGUIDrawer Window(this IRectGUIDrawer self, int id, ref Rect clientRect, GUI.WindowFunction func, GUIContent content)
 {
     clientRect = GUI.Window(id, clientRect, func, content); return(self);
 }
Beispiel #17
0
 public static IRectGUIDrawer BeginScrollView(this IRectGUIDrawer self, Rect position, ref Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect, alwaysShowHorizontal, alwaysShowVertical);
     return(self);
 }
Beispiel #18
0
 public static IRectGUIDrawer Toolbar(this IRectGUIDrawer self, Rect position, ref int selected, Texture[] images, GUIStyle style)
 {
     selected = GUI.Toolbar(position, selected, images, style); return(self);
 }
Beispiel #19
0
 public static IRectGUIDrawer Toolbar(this IRectGUIDrawer self, Rect position, ref int selected, string[] texts, GUIStyle style)
 {
     selected = GUI.Toolbar(position, selected, texts, style); return(self);
 }
Beispiel #20
0
 public static IRectGUIDrawer ModalWindow(this IRectGUIDrawer self, int id, ref Rect clientRect, GUI.WindowFunction func, string text)
 {
     clientRect = GUI.ModalWindow(id, clientRect, func, text); return(self);
 }
Beispiel #21
0
 public static IRectGUIDrawer Slider(this IRectGUIDrawer self, Rect position, ref float value, float size, float start, float end, GUIStyle slider, GUIStyle thumb, bool horiz, int id)
 {
     value = GUI.Slider(position, value, size, start, end, slider, thumb, horiz, id); return(self);
 }
Beispiel #22
0
 public static IRectGUIDrawer VerticalSlider(this IRectGUIDrawer self, Rect position, ref float value, float topValue, float bottomValue, GUIStyle slider, GUIStyle thumb)
 {
     value = GUI.VerticalSlider(position, value, topValue, bottomValue, slider, thumb); return(self);
 }
Beispiel #23
0
 public static IRectGUIDrawer BeginScrollView(this IRectGUIDrawer self, Rect position, ref Vector2 scrollPosition, Rect viewRect)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect);
     return(self);
 }
Beispiel #24
0
 public static IRectGUIDrawer Window(this IRectGUIDrawer self, int id, ref Rect clientRect, GUI.WindowFunction func, GUIContent title, GUIStyle style)
 {
     clientRect = GUI.Window(id, clientRect, func, title, style); return(self);
 }
Beispiel #25
0
 public static IRectGUIDrawer BeginScrollView(this IRectGUIDrawer self, Rect position, ref Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect, horizontalScrollbar, verticalScrollbar);
     return(self);
 }
Beispiel #26
0
 public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, GUIStyle style)
 {
     GUI.BeginGroup(position, style);
     return(self);
 }
Beispiel #27
0
 public static IRectGUIDrawer EndScrollView(this IRectGUIDrawer self)
 {
     GUI.EndScrollView();
     return(self);
 }
Beispiel #28
0
 public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, string text)
 {
     GUI.BeginGroup(position, text);
     return(self);
 }
Beispiel #29
0
 public static IRectGUIDrawer Window(this IRectGUIDrawer self, int id, ref Rect clientRect, GUI.WindowFunction func, Texture image)
 {
     clientRect = GUI.Window(id, clientRect, func, image); return(self);
 }
Beispiel #30
0
 public static IRectGUIDrawer Toolbar(this IRectGUIDrawer self, Rect position, ref int selected, GUIContent[] contents, GUIStyle style, GUI.ToolbarButtonSize buttonSize)
 {
     selected = GUI.Toolbar(position, selected, contents, style, buttonSize); return(self);
 }