Tweak: Reset trade item cycling when pausing or changing pages (#2808)

* reset trade select when unpausing

* move trade select reset to kaleido init and handle when changing pages
This commit is contained in:
Adam Bird 2023-05-03 21:45:41 -04:00 committed by GitHub
parent 2845a29e28
commit f81b042843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -922,3 +922,8 @@ void KaleidoScope_UpdateItemEquip(PlayState* play) {
}
}
}
void KaleidoScope_ResetTradeSelect() {
gSelectingMask = false;
gSelectingAdultTrade = false;
}

View File

@ -37,4 +37,6 @@ void PauseMapMark_Draw(PlayState* play);
void KaleidoScope_UpdateCursorSize(PauseContext* pauseCtx);
void KaleidoScope_ResetTradeSelect();
#endif

View File

@ -940,6 +940,8 @@ void KaleidoScope_SwitchPage(PauseContext* pauseCtx, u8 pt) {
gSaveContext.unk_13EA = 0;
Interface_ChangeAlpha(50);
KaleidoScope_ResetTradeSelect();
}
void KaleidoScope_HandlePageToggles(PauseContext* pauseCtx, Input* input) {
@ -3587,6 +3589,8 @@ void KaleidoScope_Update(PlayState* play)
}
}
KaleidoScope_ResetTradeSelect();
pauseCtx->state = 4;
break;