Fix shop confirnation dialog not showing anymore

This commit is contained in:
Jujuforce 2024-08-29 13:35:23 +02:00
parent a6da232705
commit b9df3055ce

View File

@ -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();
}