Exemplo n.º 1
0
        void OnTest1MenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            Audio.SharedAudioManager.CreateSound(SoundConstants.SelectionSound).Play();

            // ローディング画面を作成します。
            var screen = new LoadingScreen();
            screen.Screens.Add(new Test1Screen());
            screen.IsSlowLoading = true;
            screen.ControllingPlayer = e.PlayerIndex;
            ScreenContext.AddScreen(screen);
        }
Exemplo n.º 2
0
        /// <summary>
        /// ユーザーが "are you sure you want to quit? (終了してもよろしいですか?)" 
        /// メッセージ ボックスを選択した場合のイベント ハンドラー。
        /// このイベント ハンドラーは、ローディング画面を表示してゲームから
        /// メイン メニュー画面に戻ります。
        /// </summary>
        void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
        {
            Audio.SharedAudioManager.CreateSound(SoundConstants.SelectionSound).Play();

            // ローディング画面を作成します。
            var screen = new LoadingScreen();
            screen.Screens.Add(new BackgroundScreen());
            screen.Screens.Add(new MainMenuScreen());
            screen.ControllingPlayer = e.PlayerIndex;
            ScreenContext.AddScreen(screen);
        }