mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
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:
parent
2845a29e28
commit
f81b042843
@ -922,3 +922,8 @@ void KaleidoScope_UpdateItemEquip(PlayState* play) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void KaleidoScope_ResetTradeSelect() {
|
||||
gSelectingMask = false;
|
||||
gSelectingAdultTrade = false;
|
||||
}
|
||||
|
@ -37,4 +37,6 @@ void PauseMapMark_Draw(PlayState* play);
|
||||
|
||||
void KaleidoScope_UpdateCursorSize(PauseContext* pauseCtx);
|
||||
|
||||
void KaleidoScope_ResetTradeSelect();
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user