Пример #1
0
        private void DrawWindow_Header()
        {
            if (WindowToDisplay != WindowDisplayEnum.GuidePages || !listCanBeFiltered)
            {
                GUILayout.Space(4);
            }

            GUILayout.BeginHorizontal(GUILayout.Height(WindowToDisplay == WindowDisplayEnum.GuidePages && listCanBeFiltered ? 32 : 24));

            GUILayout.Space(4);
            ///Buttone for toolbar type here
            ///

            GUILayout.Label("Info: ", styleTitle);
            ddlWindowDisplay.DrawButton();
            WindowToDisplay = (WindowDisplayEnum)ddlWindowDisplay.SelectedIndex;

            GUILayout.Space(20);

            switch (WindowToDisplay)
            {
            case WindowDisplayEnum.KeyboardMap:
                DrawWindow_Header_KeyboardMap();
                break;

            case WindowDisplayEnum.GuidePages:
            default:
                DrawWindow_Header_GuidePages();
                break;
            }


            if (GUILayout.Button("X", styleButton))
            {
                mbTip.AppButton.btnAppLauncher.SetFalse(true);
            }
            GUILayout.Space(2);

            GUILayout.EndHorizontal();
        }
Пример #2
0
        private void DrawWindow_Header()
        {
            if (WindowToDisplay != WindowDisplayEnum.GuidePages || !listCanBeFiltered)
                GUILayout.Space(4);

            GUILayout.BeginHorizontal(GUILayout.Height(WindowToDisplay == WindowDisplayEnum.GuidePages && listCanBeFiltered ? 32 : 24));

            GUILayout.Space(4);
            ///Buttone for toolbar type here
            ///

            GUILayout.Label("Info: ", styleTitle);
            ddlWindowDisplay.DrawButton();
            WindowToDisplay = (WindowDisplayEnum)ddlWindowDisplay.SelectedIndex;

            GUILayout.Space(20);

            switch (WindowToDisplay) {
                case WindowDisplayEnum.KeyboardMap:
                    DrawWindow_Header_KeyboardMap();
                    break;
                case WindowDisplayEnum.GuidePages:
                default:
                    DrawWindow_Header_GuidePages();
            break;
            }

            if (GUILayout.Button("X", styleButton)) {
                mbTip.AppButton.btnAppLauncher.SetFalse(true);
            }
            GUILayout.Space(2);

            GUILayout.EndHorizontal();
        }