Пример #1
0
        private void DoAction()
        {
            if (GameTypeAllowed((GameType)_selectedGameType) == "")
            {
                Core.Cookies["CurrentGameType"] = (GameType)_selectedGameType;
                RaiseSoundTriggered(SoundEvent.MENU_DECIDE);
                if (((GameType)_selectedGameType) == GameType.VS_CPU)
                {
                    if (!_selectingCPUSkill)
                    {
                        SetupVSCPUMode();

                        return;
                    }
                    Core.Cookies["CPUSkillLevel"] = Core.CPUManager.SkillNames[_selectedCPUSkill];
                }
                if (((GameType)_selectedGameType) == GameType.SYNC_PRO)
                {
                    _playerOptionsSet.CheckSyncDifficulty();
                }
                if (((GameType)_selectedGameType) == GameType.TEAM)
                {
                    Core.ScreenTransition("TeamSelect");
                }
                else
                {
                    Core.ScreenTransition("SongSelect");
                }
            }
        }
Пример #2
0
        private void StartSong()
        {
            if (GetPlayerLevel() < CurrentSong.RequiredLevel)
            {
                return;
            }
            Core.Cookies["CurrentSong"] = CurrentSong;
            var gameType = (GameType)Core.Cookies["CurrentGameType"];

            if (gameType == GameType.SYNC_PRO || gameType == GameType.SYNC_PLUS)
            {
                _playerOptionsSet.CheckSyncDifficulty();
            }


            _songLoadingThread = new Thread(StartSongLoading)
            {
                Name = "Song Loading Thread"
            };
            _songLoadingThread.Start();

            RaiseSoundTriggered(SoundEvent.SONG_DECIDE);
            Core.Settings.Set("LastSongPlayed", CurrentSong.GetHashCode());
            Core.Settings.Set("LastSortMode", (int)_songSortDisplay.SongSortMode);
            Core.Settings.SaveToFile("settings.txt");
        }