Ejemplo n.º 1
0
        public static void SearchablePopupString(SerializedProperty property, GUIContent label, string[] displayedOptions, Func <int, bool> checkEnabled, GUIStyle style, params GUILayoutOption[] options)
        {
            Rect position = SetLastRect(GetControlRect(true, EditorGUIX.kSingleLineHeight, style, options));

            EditorGUIX.SearchablePopupString(position, property, label, displayedOptions, checkEnabled, style);
        }
Ejemplo n.º 2
0
        public static int SearchablePopup(GUIContent label, int selectedIndex, string[] displayedOptions, Func <int, bool> checkEnabled, GUIStyle style, params GUILayoutOption[] options)
        {
            Rect position = SetLastRect(GetControlRect(true, EditorGUIX.kSingleLineHeight, style, options));

            return(EditorGUIX.SearchablePopup(position, label, selectedIndex, displayedOptions, checkEnabled, style));
        }