コード例 #1
0
        /// <inheritdoc/>
        protected override void DoGUI()
        {
            GUILayout.BeginVertical();

            GUILayout.BeginHorizontal();
            {
                this.selectedTabIndex = RotorzEditorGUI.VerticalTabSelector(this.selectedTabIndex, this.tabs, GUILayout.Width(108), GUILayout.Height(Screen.height - 45));
                this.scrolling[this.selectedTabIndex] = GUILayout.BeginScrollView(this.scrolling[this.selectedTabIndex]);
                {
                    GUILayout.BeginHorizontal();
                    GUILayout.Space(10);
                    GUILayout.BeginVertical();
                    this.DrawSelectedTab();
                    GUILayout.EndVertical();
                    GUILayout.Space(10);
                    GUILayout.EndHorizontal();
                }
                GUILayout.EndScrollView();
            }
            GUILayout.EndHorizontal();

            this.DrawButtonStrip();

            GUILayout.EndVertical();

            RotorzEditorGUI.DrawHoverTip(this);

            // Refresh all scene views?
            if (GUI.changed)
            {
                SceneView.RepaintAll();
            }
        }
コード例 #2
0
        private void OnGUI()
        {
            GUILayout.Space(10);

            switch (Event.current.type)
            {
            case EventType.KeyDown:
                this.OnKeyDownEvent(Event.current.keyCode);
                break;

            case EventType.Repaint:
                if (this.ShownAsDropDown)
                {
                    RotorzEditorStyles.Instance.WindowGreyBorder.Draw(new Rect(0, 0, position.width, position.height), GUIContent.none, false, false, false, false);
                    ExtraEditorGUI.SeparatorLight(new Rect(1, 21, position.width - 2, 1));
                }
                break;
            }

            if (this.ShownAsDropDown)
            {
                GUILayout.Space(-7);
                GUILayout.Label(this.titleContent, EditorStyles.boldLabel);
                GUILayout.Space(5);
            }

            GUILayout.BeginHorizontal();

            GUILayout.Space(5);

            this.DrawOrientationButtons();

            GUILayout.FlexibleSpace();

            GUILayout.BeginVertical();
            {
                GUILayout.Space(2);
                this.DrawDialogButtons();
                GUILayout.Space(5);
            }
            GUILayout.EndVertical();

            GUILayout.Space(5);

            GUILayout.EndHorizontal();

            RotorzEditorGUI.DrawHoverTip(this);
        }
コード例 #3
0
        /// <inheritdoc/>
        protected override void DoGUI()
        {
            this.DoKeyboardInput();

            GUILayout.BeginHorizontal();

            this.brushList.Draw();

            GUILayout.EndHorizontal();

            GUILayout.Space(3);

            RotorzEditorGUI.DrawHoverTip(this);

            if (s_FocusSearchField)
            {
                EditorGUI.FocusTextInControl("SearchFilter");
                s_FocusSearchField = false;
            }
        }
コード例 #4
0
        /// <inheritdoc/>
        protected override void DoGUI()
        {
            // Generate a control ID for the palette window so that keyboard focus can be
            // easily removed from the active control.
            int paletteControlID = EditorGUIUtility.GetControlID(FocusType.Keyboard);

            if (this.clearInputFocus || Event.current.type == EventType.MouseDown || Event.current.type == EventType.KeyDown && Event.current.keyCode == KeyCode.Escape)
            {
                this.clearInputFocus             = false;
                EditorGUIUtility.keyboardControl = paletteControlID;
                this.Repaint();
            }

            if (GUIUtility.keyboardControl == paletteControlID)
            {
                ToolManager.Instance.CheckForKeyboardShortcut();
                ToolUtility.CheckToolKeyboardShortcuts();
            }

            this.OnToolSelectorGUI();

            RotorzEditorGUI.DrawHoverTip(this);
        }
コード例 #5
0
        /// <inheritdoc/>
        protected override void DoGUI()
        {
            this.DrawBrushesGUI();

            RotorzEditorGUI.DrawHoverTip(this);
        }
コード例 #6
0
 private void OnGUI_PostProcess()
 {
     RotorzEditorGUI.DrawHoverTip(this);
 }