Exemplo n.º 1
0
        private void OnGUIActiveMode()
        {
            HandleInput();
            HandleCommandChoice();

            if ((!IsDocked && focusedWindow != this &&
                 !MonKeyInternalSettings.Instance.PreventFocusOnPopup) ||
                JustOpenedActiveMode || MonKeyInternalSettings.Instance.ForceFocusOnDocked)
            {
                Focus();
            }

            InitDisplayWindow();

            if (IsParametricMethodCompletion)
            {
                ParametricPanelDisplay.DisplayParametricPanel(this);
            }
            else
            {
                CommandSearchPanelDisplay.DisplayCommandPanel(this);
            }

            if (JustOpenedActiveMode)
            {
                JustOpenedActiveMode = false;
            }

            HandleCommandChoice();

            if (MonkeyEditorUtils.IsKeyDown(KeyCode.Tab))
            {
                TabFrames = 5;
            }
        }
Exemplo n.º 2
0
 private static void DisplayBottomHelp(CommandConsoleWindow window)
 {
     GUILayout.Label("", MonkeyStyle.Instance.HorizontalSideLineStyle);
     GUILayout.Label("", MonkeyStyle.Instance.HorizontalSideSecondLineStyle);
     EditorGUILayout.BeginHorizontal(MonkeyStyle.Instance.HelpStyle);
     GUILayout.FlexibleSpace();
     CommandSearchPanelDisplay.DisplayParametricCommandTip(window);
     GUILayout.FlexibleSpace();
     EditorGUILayout.EndHorizontal();
 }