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); }
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); }
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); }
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); }
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); }
public static IRectGUIDrawer DrawClip(this IRectGUIDrawer self, Action act, Rect position) { GUI.BeginClip(position); if (act != null) { act(); } GUI.EndClip(); return(self); }
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); }
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); }
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); }
public static IRectGUIDrawer BeginClip(this IRectGUIDrawer self, Rect position) { GUI.BeginClip(position); return(self); }
public static IRectGUIDrawer BeginClip(this IRectGUIDrawer self, Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset) { GUI.BeginClip(position, scrollOffset, renderOffset, resetOffset); return(self); }
public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, Texture image) { GUI.BeginGroup(position, image); return(self); }
public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, GUIContent content) { GUI.BeginGroup(position, content); return(self); }
public static IRectGUIDrawer EndClip(this IRectGUIDrawer self) { GUI.EndClip(); return(self); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public static IRectGUIDrawer BeginScrollView(this IRectGUIDrawer self, Rect position, ref Vector2 scrollPosition, Rect viewRect) { scrollPosition = GUI.BeginScrollView(position, scrollPosition, viewRect); return(self); }
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); }
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); }
public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, GUIStyle style) { GUI.BeginGroup(position, style); return(self); }
public static IRectGUIDrawer EndScrollView(this IRectGUIDrawer self) { GUI.EndScrollView(); return(self); }
public static IRectGUIDrawer BeginGroup(this IRectGUIDrawer self, Rect position, string text) { GUI.BeginGroup(position, text); return(self); }
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); }
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); }