Ejemplo n.º 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)
 {
     LightTheme.SetGeneralSettings(instance.Get <GeneralSettings>());
     LightTheme.SetLogSettings(instance.Get <LogSettings>());
     LightTheme.SetStackTraceSettings(instance.Get <StackTraceSettings>());
     ConsoleUtility.files.Reset();
 }
Ejemplo n.º 2
0
        private static void     OnSettingsGenerated(ScriptableObject settings)
        {
            if (EditorGUIUtility.isProSkin == true)
            {
                return;
            }

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

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