Пример #1
0
        private static InstructionalButton buttonCancelEvent = new InstructionalButton(Controls.TertiaryAction, Text.buttonCancelEvent);                           // Creating the Cancel Event button

        public Controller()
        {
            Tracks.AddTracks();           // Adding all tracks
            Collections.AddCollections(); // Adding all collections
            Intensities.AddIntensities(); // Adding all intensities

            controllerMenuPool = new MenuPool();
            controllerMain     = new UIMenu(Text.controllerTitle, Text.controllerSubtitle);

            controllerMain.AddItem(mainScoreCollection = new UIMenuListItem(Text.mainScoreCollectionTitle, Collections.scoreCollections, 0, Text.mainScoreCollectionDescr));
            controllerMain.AddItem(mainScoreTrack      = new UIMenuListItem(Text.mainScoreTrackTitle, Tracks.scoreLists[0], 0, Text.mainScoreTrackDescr));
            controllerMain.AddItem(mainScoreIntensity  = new UIMenuListItem(Text.mainScoreIntensityTitle, Intensities.listIntensities, 0, Text.mainScoreIntensityDescr));
            controllerMain.AddItem(mainMuteSound       = new UIMenuCheckboxItem(Text.mainMuteSoundTitle, false, Text.mainMuteSoundDescr));
            controllerMain.AddItem(mainMuteRadio       = new UIMenuCheckboxItem(Text.mainMuteRadioTitle, false, Text.mainMuteRadioDescr));
            controllerMain.AddItem(mainDisableWanted   = new UIMenuCheckboxItem(Text.mainDisableWantedTitle, false, Text.mainDisableWantedDescr));
            controllerMain.AddItem(mainDisableFlight   = new UIMenuCheckboxItem(Text.mainDisableFlightTitle, false, Text.mainDisableFlightDescr));
            controllerMain.AddItem(mainDisableOnDeath  = new UIMenuCheckboxItem(Text.mainDisableOnDeathTitle, true, Text.mainDisableOnDeathDescr));

            controllerMain.AddItem(mainCustomEvent = new UIMenuItem(Text.mainCustomEventTitle, Text.mainCustomEventDescr)); // #DEBUG
            // controllerMain.AddItem(mainCustomScene = new UIMenuItem(Text.mainCustomSceneTitle, Text.mainCustomSceneDescr)); #DEBUG

            controllerMain.SetBannerType(bannerScoreController);      // Adding the banner

            controllerMain.AddInstructionalButton(buttonStopScore);   // Adding the Stop Score button
            controllerMain.AddInstructionalButton(buttonCancelEvent); // Adding the Cancel event button #DEBUG

            controllerMenuPool.Add(controllerMain);

            Tick    += OnTick;
            KeyDown += OnKeyDown;
            controllerMain.OnIndexChange    += OnIndexChange;
            controllerMain.OnItemSelect     += OnItemSelect;
            controllerMain.OnListChange     += ListChangeHandler;
            controllerMain.OnCheckboxChange += OnCheckboxChange;
            WarningMessage.OnWarningMessage += OnWarningMessage;
            controllerMain.RefreshIndex();
        }
Пример #2
0
 static void GetCurrentTrack() // Determining the currently selected Score Track
 {
     currentScoreTrack = Tracks.FindTrack(mainScoreTrack.Items[mainScoreTrack.Index].ToString());
 }