예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
        }
예제 #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);
 }
예제 #6
0
 public static IRectGUI DrawClip(this IRectGUI self, Action act, Rect position)
 {
     GUI.BeginClip(position);
     if (act != null)
     {
         act();
     }
     GUI.EndClip();
     return(self);
 }
예제 #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);
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #11
0
 public static IRectGUI BeginScrollView(this IRectGUI self, Rect position, ref Vector2 scrollPosition, Rect viewRect)
 {
     scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect);
     return(self);
 }
예제 #12
0
 public static IRectGUI BeginClip(this IRectGUI self, Rect position)
 {
     GUI.BeginClip(position);
     return(self);
 }
예제 #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);
 }
예제 #14
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, Texture image)
 {
     GUI.BeginGroup(position, image);
     return(self);
 }
예제 #15
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, GUIContent content)
 {
     GUI.BeginGroup(position, content);
     return(self);
 }
예제 #16
0
 public static IRectGUI EndClip(this IRectGUI self)
 {
     GUI.EndClip();
     return(self);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #26
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, GUIStyle style)
 {
     GUI.BeginGroup(position, style);
     return(self);
 }
예제 #27
0
 public static IRectGUI EndScrollView(this IRectGUI self)
 {
     GUI.EndScrollView();
     return(self);
 }
예제 #28
0
 public static IRectGUI BeginGroup(this IRectGUI self, Rect position, string text)
 {
     GUI.BeginGroup(position, text);
     return(self);
 }
예제 #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);
 }
예제 #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);
 }