Exemple #1
0
        void OnItemSelect(UIMenu sender, UIMenuItem selectedItem, int index)
        {
            bool hasWentDown = false;                // WORKAROUND BUGFIX

            if (selectedItem == mainScoreCollection) // Fancy thing to disallow selecting the Set
            {
                hasWentDown = true;
                mainScoreCollection.Selected = false;
                controllerMain.GoDown();
            }

            if (controllerMain.CurrentSelection == 1 && !hasWentDown)
            {
                PlayScore();
            }

            if (selectedItem == mainScoreIntensity)
            {
                SetInstensity();
            }

            if (selectedItem == mainCustomEvent) // #DEBUG
            {
                TriggerEvent(OnscreenKeyboard.GetInput());
            }
            //
            // if (selectedItem == mainCustomScene)
            // {
            //     StartScene(OnscreenKeyboard.GetInput());
            // }
        }
        void OnItemSelect(UIMenu sender, UIMenuItem selectedItem, int index)
        {
            bool hasWentDown = false;                // WORKAROUND BUGFIX

            if (selectedItem == mainScoreCollection) // Fancy thing to disallow selecting the Set
            {
                hasWentDown = true;
                mainScoreCollection.Selected = false;
                controllerMain.GoDown();
            }

            if (selectedItem == mainScoreTrack && !hasWentDown)
            {
                PlayScore();
            }

            if (selectedItem == mainScoreIntensity)
            {
                SetInstensity();
            }

#if DEBUG
            if (selectedItem == mainCustomEvent) // #DEBUG
            {
                TriggerEvent(OnscreenKeyboard.GetInput());
            }
            //
            // if (selectedItem == mainCustomScene)
            // {
            //     StartScene(OnscreenKeyboard.GetInput());
            // }

            if (selectedItem == mainTesting) // #DEBUG
            {
                controllerMain.Visible = false;
                testingMain.Visible    = true;
            }

            if (sender == testingMain && selectedItem == testingFinaleTrack)
            {
                TriggerEvent("MP_CHF_START");
                TriggerEvent("MP_CHF_MED_INTENSITY");
                UI.Notify("CH Finale track triggered.");
            }
#endif
        }