示例#1
0
        /// <summary>
        /// Opens the navigation field drawer.
        /// </summary>
        public static void BeginNavigationField(ref NavigationFieldData navField, U.Vector2?restriction = null)
        {
            lastDrawnNavField = navField;

            U.Rect _fieldRect = FindLayoutAreaRect(ref navField.backupRect, navField.border);

            BeginColorPocket(navField.backgroundColor);
            Gl.BeginArea(_fieldRect, "", "Box");
            EndColorPocket();

            navField.DrawBackground();
            navField.DragUpdate();

            U.Vector2 _restriction = restriction ?? (new U.Vector2(_fieldRect.width, _fieldRect.height) - navField.scrollView);
            Gl.BeginArea(new U.Rect(navField.scrollView.x, navField.scrollView.y, _restriction.x, _restriction.y));
        }
示例#2
0
 public static void BeginArea(SmartRect rect, string text)
 {
     UGUI.BeginArea(rect.ToRect(), text);
 }
示例#3
0
 public static void BeginArea(SmartRect rect)
 {
     UGUI.BeginArea(rect.ToRect());
 }
示例#4
0
 public static void BeginArea(Rect rect, string text)
 {
     UGUI.BeginArea(rect, text);
 }
示例#5
0
 public static void BeginArea(Rect rect)
 {
     UGUI.BeginArea(rect);
 }
示例#6
0
 public static void BeginArea(Rect screenRect, Texture image, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.Temp(image), style);
 }
示例#7
0
 public static void BeginArea(Rect screenRect, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.none, style);
 }
示例#8
0
 public static void BeginArea(Rect screenRect, string text, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.Temp(text), style);
 }
示例#9
0
 public AreaScope(Rect screenRect, GUIContent content, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, content, style);
 }
示例#10
0
 public static void BeginArea(Rect screenRect, GUIContent content)
 {
     GUILayout.BeginArea(screenRect, content, GUIStyle.none);
 }
示例#11
0
 public AreaScope(Rect screenRect, Texture image, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, image, style);
 }
示例#12
0
 public AreaScope(Rect screenRect, string text, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, text, style);
 }
示例#13
0
 public AreaScope(Rect screenRect, GUIContent content)
 {
     GUILayout.BeginArea(screenRect, content);
 }
示例#14
0
 public AreaScope(Rect screenRect, string text)
 {
     GUILayout.BeginArea(screenRect, text);
 }
示例#15
0
 public AreaScope(Rect screenRect)
 {
     GUILayout.BeginArea(screenRect);
 }