fix: shop confirmation dialog not showing (#7)

Co-authored-by: Jujuforce <jujuforce@gmail.com>
Co-authored-by: akanyan <alicechecker01@proton.me>
Co-authored-by: あかニャン <akanyan@noreply.gitea.tendokyu.moe>
Reviewed-on: #7
Co-authored-by: jujuforce <jujuforce@noreply.gitea.tendokyu.moe>
Co-committed-by: jujuforce <jujuforce@noreply.gitea.tendokyu.moe>
This commit is contained in:
jujuforce 2024-08-30 14:53:27 +00:00 committed by あかニャン
parent 66fdc27787
commit 2204fb4756

View File

@ -18,14 +18,13 @@ class patch_Scene_32_PrePlayMusic_MusicSelect: Scene_32_PrePlayMusic_MusicSelect
// Walk around the warning dialog // Walk around the warning dialog
if(_dialogBase == null && !_selector.isDecided && !_selector.isCanceled && (_selector.isPressed || _selector.isPressedDisabledElement)) { if(_dialogBase == null && !_selector.isDecided && !_selector.isCanceled && (_selector.isPressed || _selector.isPressedDisabledElement)) {
MusicSelectViewData musicViewData = _selectList.getMusicViewData(_selector.selectIndex); MusicSelectViewData musicViewData = _selectList.getMusicViewData(_selector.selectIndex);
if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario) { if(musicViewData != null && musicViewData.kind == MusicSelectViewData.Kind.Scenario
if(musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) { && musicViewData.scenarioViewData.ngReason == ScenarioViewData.PlayNGReason.None) {
onFinishPlayScenario(0, false); onFinishPlayScenario(0, false);
}
}
updateSystemUIPanel(); updateSystemUIPanel();
} else { return;
}
}
orig_Execute_Select(); orig_Execute_Select();
} }
} }
}