예제 #1
0
 public override void OnGUI(Rect rect, SerializedProperty property, GUIContent label)
 {
     ExtendedGUI.IntRange(rect, label, property);
 }
예제 #2
0
        public static void IntRange(GUIContent label, SerializedProperty property)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            ExtendedGUI.IntRange(rect, label, property);
        }
예제 #3
0
        public static IntRange IntRange(GUIContent label, IntRange value)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            return(ExtendedGUI.IntRange(rect, label, value));
        }
        public static string DateField(GUIContent label, string date)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            return(ExtendedGUI.DateField(rect, label, date));
        }
        public static TimeObject TimeObject(GUIContent label, TimeObject value)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            return(ExtendedGUI.TimeObject(rect, label, value));
        }
예제 #6
0
        public static Enumeration Enumeration(GUIContent label, Enumeration enumeration)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            return(ExtendedGUI.Enumeration(rect, label, enumeration));
        }
예제 #7
0
 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
 {
     ExtendedGUI.Enumeration(position, label, property);
 }
예제 #8
0
        public static bool PopupField(GUIContent label, string selected)
        {
            Rect rect = EditorGUILayout.GetControlRect(GUILayout.ExpandWidth(true), GUILayout.Height(EditorGUIUtility.singleLineHeight));

            return(ExtendedGUI.PopupField(rect, label, selected));
        }