mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-08 15:49:33 +02:00
[bug] fix scrollable elements not resetting properly
This commit is contained in:
parent
6030b780f2
commit
bfe3e9a415
@ -344,6 +344,7 @@ export default abstract class AbstractOptionSelectUiHandler extends UiHandler {
|
||||
super.clear();
|
||||
this.config = null;
|
||||
this.optionSelectContainer.setVisible(false);
|
||||
this.scrollCursor = 0;
|
||||
this.eraseCursor();
|
||||
}
|
||||
|
||||
|
@ -411,6 +411,7 @@ export default class AchvsUiHandler extends MessageUiHandler {
|
||||
super.clear();
|
||||
this.currentPage = Page.ACHIEVEMENTS;
|
||||
this.mainContainer.setVisible(false);
|
||||
this.setScrollCursor(0);
|
||||
this.eraseCursor();
|
||||
}
|
||||
|
||||
|
@ -186,6 +186,7 @@ export default class AbstractSettingsUiHandler extends UiHandler {
|
||||
|
||||
this.settingsContainer.setVisible(true);
|
||||
this.setCursor(0);
|
||||
this.setScrollCursor(0);
|
||||
|
||||
this.getUi().moveTo(this.settingsContainer, this.getUi().length - 1);
|
||||
|
||||
@ -394,6 +395,7 @@ export default class AbstractSettingsUiHandler extends UiHandler {
|
||||
clear() {
|
||||
super.clear();
|
||||
this.settingsContainer.setVisible(false);
|
||||
this.setScrollCursor(0);
|
||||
this.eraseCursor();
|
||||
this.getUi().bgmBar.toggleBgmBar(this.scene.showBgmBar);
|
||||
if (this.reloadRequired) {
|
||||
|
Loading…
Reference in New Issue
Block a user