1
0
mirror of synced 2025-02-17 19:09:25 +01:00

Pressing esc ingame now launches the pause menu instead of quitting directly the level (Feature voted on discord)

This commit is contained in:
0aubsq 2021-11-18 15:41:28 +01:00
parent c2ee5e7066
commit 094bcd5f0b
3 changed files with 15 additions and 2 deletions

View File

@ -344,7 +344,7 @@ namespace TJAPlayer3
case CStage.Eフェーズ._フェードイン:
//if( this.actFI.On進行描画() != 0 ) // #27787 2012.3.10 yyagi 曲読み込み画面のフェードインの省略
// 必ず一度「CStaeg.Eフェーズ.共通_フェードイン」フェーズを経由させること。
// さもないと、曲読み込みが完了するまで、曲読み込み画面が描画されない。
// さもないと、曲読み込みが完了するまで、曲読み込み画面が描画されない。
base.eフェーズID = CStage.Eフェーズ.NOWLOADING_DTXファイルを読み込む;
return (int) E曲読込画面の戻り値.;

View File

@ -2891,7 +2891,19 @@ namespace TJAPlayer3
}
else if ( ( base.eフェーズID == CStage.Eフェーズ._通常状態 ) && ( keyboard.bキーが押された( (int)SlimDXKeys.Key.Escape ) || TJAPlayer3.Pad.b押されたGB( Eパッド.FT ) ) && !this.actPauseMenu.bIsActivePopupMenu )
{ // escape (exit)
this.t演奏中止();
if (!this.actPauseMenu.bIsActivePopupMenu && this.bPAUSE == false)
{
TJAPlayer3.Skin.sound変更音.t再生する();
CSound管理.rc演奏用タイマ.t一時停止();
TJAPlayer3.Timer.t一時停止();
TJAPlayer3.DTX.t全チップの再生一時停止();
this.actAVI.tPauseControl();
this.bPAUSE = true;
this.actPauseMenu.tActivatePopupMenu(0);
}
// this.t演奏中止();
}
else if ( keyboard.bキーが押された( (int)SlimDXKeys.Key.D1 ) )
{

View File

@ -2206,6 +2206,7 @@ namespace TJAPlayer3
#endregion
string strNull = "Found";
if (TJAPlayer3.Input管理.Keyboard.bキーが押された((int)SlimDX.DirectInput.Key.F1))
{
if (!this.actPauseMenu.bIsActivePopupMenu && this.bPAUSE == false)