Example #1
0
        static RainbowFoldersPreferences()
        {
            var modifierLabel = new GUIContent("Modifier Key", MOD_KEY_HINT);

            MODIFIER_KEY_PREF = new EditorPrefsModifierKey(MOD_KEY_PREF_KEY + ProjectName, modifierLabel, MOD_KEY_DEFAULT);
            ModifierKey       = MODIFIER_KEY_PREF.Value;
        }
        static RainbowFoldersPreferences()
        {
            var homeLabel = new GUIContent("Folder Location", HOME_FOLDER_HINT);

            HOME_FOLDER_PREF = new EditorPrefsString(HOME_FOLDER_PREF_KEY + ProjectName, homeLabel, HOME_FOLDER_DEFAULT);
            HomeFolder       = HOME_FOLDER_PREF.Value;

            var modifierLabel = new GUIContent("Modifier Key", MOD_KEY_HINT);

            MODIFIER_KEY_PREF = new EditorPrefsModifierKey(MOD_KEY_PREF_KEY + ProjectName, modifierLabel, MOD_KEY_DEFAULT);
            ModifierKey       = MODIFIER_KEY_PREF.Value;
        }
        static RainbowHierarchyPreferences()
        {
            var homeLabel = new GUIContent("Folder Location", HOME_FOLDER_HINT);

            HOME_FOLDER_PREF = new EditorPrefsString(HOME_FOLDER_PREF_KEY + ProjectName, homeLabel, HOME_FOLDER_DEFAULT);
            HomeFolder       = HOME_FOLDER_PREF.Value;

            var modifierLabel = new GUIContent("Modifier Key", MOD_KEY_HINT);

            MODIFIER_KEY_PREF = new EditorPrefsModifierKey(MOD_KEY_PREF_KEY + ProjectName, modifierLabel, MOD_KEY_DEFAULT);
            ModifierKey       = MODIFIER_KEY_PREF.Value;

            var hideConfigLabel = new GUIContent("Hide Config", HIDE_CONFIG_HINT);

            HIDE_CONFIG_PREF = new EditorPrefsBoolean(HIDE_CONFIG_PREF_KEY + ProjectName, hideConfigLabel, HIDE_CONFIG_DEFAULT);
            HideConfig       = HIDE_CONFIG_PREF.Value;
        }