summaryrefslogtreecommitdiff
path: root/Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-15 19:05:22 +0800
committerchai <chaifix@163.com>2020-10-15 19:05:22 +0800
commitf049177e20a276049c61edbad631c1b2bbdd5706 (patch)
tree7d1a1cd9b690a5d9a8b9a65554a191d6ec769601 /Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs
parent6990a0d1fbdcbbf404f40713363ac1a148c8840a (diff)
-advanced inspector
+odin
Diffstat (limited to 'Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs')
-rw-r--r--Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs59
1 files changed, 0 insertions, 59 deletions
diff --git a/Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs b/Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs
deleted file mode 100644
index 608a45f5..00000000
--- a/Assets/Plugins/Editor/AdvancedInspector/ExtraGUI/ExtraGUILayout.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-using UnityEngine;
-using UnityEditor;
-
-namespace AdvancedInspector
-{
- public static class ExtraGUILayout
- {
- public static float FloatAngle(float value)
- {
- return FloatAngle(value, -1, -1, -1);
- }
-
- public static float FloatAngle(float value, float snap)
- {
- return FloatAngle(value, snap, -1, -1);
- }
-
- public static float FloatAngle(float value, float snap, float min, float max)
- {
- Rect rect = GUILayoutUtility.GetRect(128, 512, 32, 32);
- rect.x += 8;
- return ExtraGUI.FloatAngle(rect, value, snap, min, max);
- }
-
- public static int IntAngle(int value)
- {
- return IntAngle(value, -1, -1, -1);
- }
-
- public static int IntAngle(int value, int snap)
- {
- return IntAngle(value, snap, -1, -1);
- }
-
- public static int IntAngle(int value, int snap, int min, int max)
- {
- Rect rect = GUILayoutUtility.GetRect(128, 512, 32, 32);
- rect.x += 8;
- return ExtraGUI.IntAngle(rect, value, snap, min, max);
- }
-
- public static int CycleButton(int selected, GUIContent[] contents, GUIStyle style)
- {
- if (GUILayout.Button(contents[selected], style))
- {
- selected++;
- if (selected >= contents.Length)
- selected = 0;
- }
-
- return selected;
- }
- }
-}