From b9df3055cef75a4e97716909af666effcf3830f9 Mon Sep 17 00:00:00 2001 From: Jujuforce Date: Thu, 29 Aug 2024 13:35:23 +0200 Subject: [PATCH] Fix shop confirnation dialog not showing anymore --- .../MU3/patch_Scene_32_PrePlayMusic_MusicSelect.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/InfiniteStory/MU3/patch_Scene_32_PrePlayMusic_MusicSelect.cs b/InfiniteStory/MU3/patch_Scene_32_PrePlayMusic_MusicSelect.cs index 17fef40..f0b9481 100644 --- a/InfiniteStory/MU3/patch_Scene_32_PrePlayMusic_MusicSelect.cs +++ b/InfiniteStory/MU3/patch_Scene_32_PrePlayMusic_MusicSelect.cs @@ -18,12 +18,14 @@ class patch_Scene_32_PrePlayMusic_MusicSelect: Scene_32_PrePlayMusic_MusicSelect // Walk around the warning dialog if(_dialogBase == null && !_selector.isDecided && !_selector.isCanceled && (_selector.isPressed || _selector.isPressedDisabledElement)) { MusicSelectViewData musicViewData = _selectList.getMusicViewData(_selector.selectIndex); - if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario) { - if(musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) { - onFinishPlayScenario(0, false); - } + if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario && + musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) { + onFinishPlayScenario(0, false); + updateSystemUIPanel(); + } + else { + orig_Execute_Select(); } - updateSystemUIPanel(); } else { orig_Execute_Select(); }