示例#1
0
 /// <summary></summary>
 /// <remarks>Test your Color in Unity 4, because rich text is buggy over there.</remarks>
 /// <param name="instance"></param>
 public override void    SetTheme(NGSettings instance)
 {
     DarkTheme.SetGeneralSettings(instance.Get <GeneralSettings>());
     DarkTheme.SetLogSettings(instance.Get <LogSettings>());
     DarkTheme.SetStackTraceSettings(instance.Get <StackTraceSettings>());
     ConsoleUtility.files.Reset();
 }
示例#2
0
        private static void     OnSettingsGenerated(ScriptableObject settings)
        {
            if (EditorGUIUtility.isProSkin == false)
            {
                return;
            }

            Action OverrideSettings = () =>
            {
                if (settings is GeneralSettings)
                {
                    DarkTheme.SetGeneralSettings(settings as GeneralSettings);
                }
                else if (settings is LogSettings)
                {
                    DarkTheme.SetLogSettings(settings as LogSettings);
                }
                else if (settings is StackTraceSettings)
                {
                    DarkTheme.SetStackTraceSettings(settings as StackTraceSettings);
                }
            };

            if (Utility.CheckOnGUI() == false)
            {
                GUICallbackWindow.Open(OverrideSettings);
            }
            else
            {
                OverrideSettings();
            }
        }