Пример #1
0
        public override void OnInspectorGUI()
        {
            TypeSafeGUI.DrawSettingsLogo();

            if (!_override)
            {
                GUILayout.Label(Strings.SettingsInspectorWarningText, EditorStyles.wordWrappedLabel);
                EditorGUILayout.Separator();
            }

            if (GUILayout.Button("Open Settings Window"))
            {
                TypeSafeApi.OpenSettingsWindow();
            }

            if (!_override)
            {
                if (GUILayout.Button("Override Warning"))
                {
                    _override = true;
                }
            }

            EditorGUILayout.Separator();

            if (_override)
            {
                GUILayout.Label("You have been warned...");
                base.OnInspectorGUI();
            }
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            TypeSafeGUI.DrawSettingsLogo();

            GUILayout.Label(Strings.CacheInspectorWarningText, EditorStyles.wordWrappedLabel);
            EditorGUILayout.Separator();

            base.OnInspectorGUI();
        }
        protected override void OnGUI()
        {
            BoxStyleOverride = Styles.WelcomeTextBox;

            TypeSafeGUI.BeginDrawBackground();
            TypeSafeGUI.DrawWelcomeLogo();
            TypeSafeGUI.EndDrawBackground();

            base.OnGUI();
        }
Пример #4
0
        protected override void OnGUI()
        {
            TypeSafeGUI.BeginDrawBackground();

            TypeSafeGUI.DrawSettingsLogo();

            TypeSafeGUI.EndDrawBackground();

            EditorGUILayout.BeginVertical(Styles.SettingsHeaderBoxStyle);
            EditorGUILayout.EndVertical();

            EditorGUI.BeginChangeCheck();

            base.OnGUI();

            if (EditorGUI.EndChangeCheck())
            {
                Settings.Instance.Save();
            }

            OnGUIFooter();
        }