Exemplo n.º 1
0
        private void OnGUI()
        {
            Title();
            EditorWindowUtils.BeginVertical();
            scrollPosition = EditorWindowUtils.BeginScrollView(scrollPosition);
            switch (_page)
            {
            case Page.Welcome:
                welcomeWindow.OnGUI();
                break;

            case Page.Release_Notes:
                releaseNotesWindow.OnGUI();
                break;

            case Page.Log_Settings:
                logSettingsWindow.OnGUI();
                break;

            default:
                welcomeWindow.OnGUI();
                break;
            }
            EditorWindowUtils.EndScrollView();
            EditorWindowUtils.EndVertical();
            EditorWindowUtils.Space(10);
            UndoableInputFieldUtils.BoolFieldWithTooltip(() => { forceShow = EditorPrefs.GetBool(editor_About_ForcePopUp, false); return(forceShow); }, b => { forceShow = b; EditorPrefs.SetBool(editor_About_ForcePopUp, b); }, "  Automatically Pop-up", "Display this window when opening Unity. Alternatively, this widow can be opened from LeiaLoft-> About", window);
            EditorWindowUtils.Space(10);
        }
 public void OnGUI()
 {
     EditorWindowUtils.BeginVertical();
     if (targetPlatforms == null)
     {
         targetPlatforms = new BuildTargetGroup[] { BuildTargetGroup.Android, BuildTargetGroup.Standalone };
     }
     foreach (var grp in targetPlatforms)
     {
         EnumLogLevel(grp);
     }
     EditorWindowUtils.Space(5);
     EditorWindowUtils.EndVertical();
 }