Merge branch 'master' into dev

This commit is contained in:
Mister_Nebula 2022-02-05 10:17:46 +00:00
commit 2f52ab9cae
2 changed files with 4 additions and 3 deletions

View File

@ -126,7 +126,7 @@ namespace QSB.Menus
{
OneButtonInfoPopup.SetUpPopup(message, InputLibrary.menuConfirm, InputLibrary.cancel, new ScreenPrompt(okButtonText), null, true, false);
OWTime.Pause(OWTime.PauseType.System);
OWTime.Pause(OWTime.PauseType.Menu);
OWInput.ChangeInputMode(InputMode.Menu);
var pauseCommandListener = Locator.GetPauseCommandListener();
@ -143,7 +143,7 @@ namespace QSB.Menus
{
TwoButtonInfoPopup.SetUpPopup(message, InputLibrary.menuConfirm, InputLibrary.cancel, new ScreenPrompt(okButtonText), new ScreenPrompt(cancelButtonText), true, true);
OWTime.Pause(OWTime.PauseType.System);
OWTime.Pause(OWTime.PauseType.Menu);
OWInput.ChangeInputMode(InputMode.Menu);
var pauseCommandListener = Locator.GetPauseCommandListener();
@ -165,7 +165,7 @@ namespace QSB.Menus
_addedPauseLock = false;
}
OWTime.Unpause(OWTime.PauseType.System);
OWTime.Unpause(OWTime.PauseType.Menu);
OWInput.RestorePreviousInputs();
PopupOK?.SafeInvoke();

View File

@ -16,6 +16,7 @@ namespace QSB.TimeSync.Patches
DebugLog.DebugWrite($"OnStartOfTimeLoop");
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(OWTime), nameof(OWTime.Pause))]
public static bool StopPausing(OWTime.PauseType pauseType)