Exemplo n.º 1
0
 public static IRectGUI DrawScrollView(this IRectGUI 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);
 }
Exemplo n.º 2
0
 public static IRectGUI DrawGroup(this IRectGUI self, Action act, Rect position, GUIStyle style)
 {
     GUI.BeginGroup(position, style);
     if (act != null)
     {
         act();
     }
     GUI.EndGroup(); return(self);
 }
Exemplo n.º 3
0
 public static IRectGUI DrawScrollView(this IRectGUI self, Action act, Rect position, ref Vector2 scrollPosition, Rect viewRect)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect);
     if (act != null)
     {
         act();
     }
     GUI.EndScrollView(); return(self);
 }
Exemplo n.º 4
0
        public static IRectGUI RepeatButton(this IRectGUI self, Action listener, Rect position, GUIContent content, GUIStyle style)
        {
            bool bo = GUI.RepeatButton(position, content, style);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Exemplo n.º 5
0
 public static IRectGUI DrawClip(this IRectGUI 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);
 }
Exemplo n.º 6
0
 public static IRectGUI DrawClip(this IRectGUI self, Action act, Rect position)
 {
     GUI.BeginClip(position);
     if (act != null)
     {
         act();
     }
     GUI.EndClip();
     return(self);
 }
Exemplo n.º 7
0
 public static IRectGUI DrawGroup(this IRectGUI self, Action act, Rect position, GUIContent content)
 {
     GUI.BeginGroup(position, content);
     if (act != null)
     {
         act();
     }
     GUI.EndGroup();
     return(self);
 }
Exemplo n.º 8
0
        public static IRectGUI Button(this IRectGUI self, Action listener, Rect position, Texture image, GUIStyle style)
        {
            bool bo = GUI.Button(position, image, style);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Exemplo n.º 9
0
        public static IRectGUI RepeatButton(this IRectGUI self, Action listener, Rect position, string text)
        {
            bool bo = GUI.RepeatButton(position, text);

            if (bo && listener != null)
            {
                listener();
            }
            return(self);
        }
Exemplo n.º 10
0
        public static IRectGUI Button(this IRectGUI self, Action listener, Rect position, GUIContent content)
        {
            bool bo = GUI.Button(position, content);

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

            return(self);
        }
Exemplo n.º 11
0
 public static IRectGUI BeginScrollView(this IRectGUI self, Rect position, ref Vector2 scrollPosition, Rect viewRect)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect);
     return(self);
 }
Exemplo n.º 12
0
 public static IRectGUI BeginClip(this IRectGUI self, Rect position)
 {
     GUI.BeginClip(position);
     return(self);
 }
Exemplo n.º 13
0
 public static IRectGUI BeginClip(this IRectGUI self, Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUI.BeginClip(position, scrollOffset, renderOffset, resetOffset);
     return(self);
 }
Exemplo n.º 14
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, Texture image)
 {
     GUI.BeginGroup(position, image);
     return(self);
 }
Exemplo n.º 15
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, GUIContent content)
 {
     GUI.BeginGroup(position, content);
     return(self);
 }
Exemplo n.º 16
0
 public static IRectGUI EndClip(this IRectGUI self)
 {
     GUI.EndClip();
     return(self);
 }
Exemplo n.º 17
0
 public static IRectGUI VerticalSlider(this IRectGUI 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);
 }
Exemplo n.º 18
0
 public static IRectGUI Window(this IRectGUI self, int id, ref Rect clientRect, GUI.WindowFunction func, string text, GUIStyle style)
 {
     clientRect = GUI.Window(id, clientRect, func, text, style); return(self);
 }
Exemplo n.º 19
0
 public static IRectGUI Window(this IRectGUI self, int id, ref Rect clientRect, GUI.WindowFunction func, GUIContent title, GUIStyle style)
 {
     clientRect = GUI.Window(id, clientRect, func, title, style); return(self);
 }
Exemplo n.º 20
0
 public static IRectGUI Toolbar(this IRectGUI self, Rect position, ref int selected, Texture[] images, GUIStyle style)
 {
     selected = GUI.Toolbar(position, selected, images, style); return(self);
 }
Exemplo n.º 21
0
 public static IRectGUI Window(this IRectGUI self, int id, ref Rect clientRect, GUI.WindowFunction func, GUIContent content)
 {
     clientRect = GUI.Window(id, clientRect, func, content); return(self);
 }
Exemplo n.º 22
0
 public static IRectGUI Toolbar(this IRectGUI self, Rect position, ref int selected, GUIContent[] contents, GUIStyle style, GUI.ToolbarButtonSize buttonSize)
 {
     selected = GUI.Toolbar(position, selected, contents, style, buttonSize); return(self);
 }
Exemplo n.º 23
0
 public static IRectGUI ModalWindow(this IRectGUI self, int id, ref Rect clientRect, GUI.WindowFunction func, string text)
 {
     clientRect = GUI.ModalWindow(id, clientRect, func, text); return(self);
 }
Exemplo n.º 24
0
 public static IRectGUI Slider(this IRectGUI 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);
 }
Exemplo n.º 25
0
 public static IRectGUI BeginScrollView(this IRectGUI self, 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);
     return(self);
 }
Exemplo n.º 26
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, GUIStyle style)
 {
     GUI.BeginGroup(position, style);
     return(self);
 }
Exemplo n.º 27
0
 public static IRectGUI EndScrollView(this IRectGUI self)
 {
     GUI.EndScrollView();
     return(self);
 }
Exemplo n.º 28
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, string text)
 {
     GUI.BeginGroup(position, text);
     return(self);
 }
Exemplo n.º 29
0
 public static IRectGUI Window(this IRectGUI self, int id, ref Rect clientRect, GUI.WindowFunction func, Texture image)
 {
     clientRect = GUI.Window(id, clientRect, func, image); return(self);
 }
Exemplo n.º 30
0
 public static IRectGUI VerticalScrollbar(this IRectGUI self, Rect position, ref float value, float size, float topValue, float bottomValue)
 {
     value = GUI.VerticalScrollbar(position, value, size, topValue, bottomValue); return(self);
 }