コード例 #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
ファイル: GUILayout.cs プロジェクト: kmlkmljkl2/Anarchy
 public static void BeginArea(SmartRect rect, string text)
 {
     UGUI.BeginArea(rect.ToRect(), text);
 }
コード例 #3
0
ファイル: GUILayout.cs プロジェクト: kmlkmljkl2/Anarchy
 public static void BeginArea(SmartRect rect)
 {
     UGUI.BeginArea(rect.ToRect());
 }
コード例 #4
0
ファイル: GUILayout.cs プロジェクト: kmlkmljkl2/Anarchy
 public static void BeginArea(Rect rect, string text)
 {
     UGUI.BeginArea(rect, text);
 }
コード例 #5
0
ファイル: GUILayout.cs プロジェクト: kmlkmljkl2/Anarchy
 public static void BeginArea(Rect rect)
 {
     UGUI.BeginArea(rect);
 }
コード例 #6
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public static void BeginArea(Rect screenRect, Texture image, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.Temp(image), style);
 }
コード例 #7
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public static void BeginArea(Rect screenRect, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.none, style);
 }
コード例 #8
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public static void BeginArea(Rect screenRect, string text, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, GUIContent.Temp(text), style);
 }
コード例 #9
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect, GUIContent content, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, content, style);
 }
コード例 #10
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public static void BeginArea(Rect screenRect, GUIContent content)
 {
     GUILayout.BeginArea(screenRect, content, GUIStyle.none);
 }
コード例 #11
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect, Texture image, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, image, style);
 }
コード例 #12
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect, string text, GUIStyle style)
 {
     GUILayout.BeginArea(screenRect, text, style);
 }
コード例 #13
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect, GUIContent content)
 {
     GUILayout.BeginArea(screenRect, content);
 }
コード例 #14
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect, string text)
 {
     GUILayout.BeginArea(screenRect, text);
 }
コード例 #15
0
ファイル: GUILayout.cs プロジェクト: zzrx79/UnityDecompiled
 public AreaScope(Rect screenRect)
 {
     GUILayout.BeginArea(screenRect);
 }