Exemplo n.º 1
0
    public static void PreferencesGUI()
    {
        Instance.titleStyle = new GUIStyle()
        {
            richText  = true,
            alignment = TextAnchor.MiddleCenter,
            margin    = new RectOffset(0, 0, 5, 5)
        };

        GUI.contentColor    = Color.white;
        GUI.color           = Color.white;
        GUI.backgroundColor = Color.white;

        Instance.CheckGeneralOptions();
        Instance.CheckMenuItemInclusion();
        Instance.CheckAssemblyInclusion();
        Instance.CheckNameSpaceInclusion();
        Instance.CheckSearchOptions();

        Instance.CheckPerformanceOptions();

        if (GUI.changed)
        {
            SavePrefs();
            EditorUtility.SetDirty(Instance);
            AssetDatabase.SaveAssets();
        }
    }
Exemplo n.º 2
0
    private void CheckOptions()
    {
        scrollVector = EditorGUILayout.BeginScrollView(scrollVector);

        Instance.CheckHotKeyOptions();
        Instance.CheckPreferencesOptions();
        Instance.CheckMenuItemInclusion();
        Instance.CheckAssemblyInclusion();
        Instance.CheckNameSpaceInclusion();
        Instance.CheckSearchOptions();
        Instance.CheckPerformanceOptions();

        EditorGUILayout.EndScrollView();
    }