mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-09 16:19:27 +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();
|
super.clear();
|
||||||
this.config = null;
|
this.config = null;
|
||||||
this.optionSelectContainer.setVisible(false);
|
this.optionSelectContainer.setVisible(false);
|
||||||
|
this.scrollCursor = 0;
|
||||||
this.eraseCursor();
|
this.eraseCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -411,6 +411,7 @@ export default class AchvsUiHandler extends MessageUiHandler {
|
|||||||
super.clear();
|
super.clear();
|
||||||
this.currentPage = Page.ACHIEVEMENTS;
|
this.currentPage = Page.ACHIEVEMENTS;
|
||||||
this.mainContainer.setVisible(false);
|
this.mainContainer.setVisible(false);
|
||||||
|
this.setScrollCursor(0);
|
||||||
this.eraseCursor();
|
this.eraseCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,6 +186,7 @@ export default class AbstractSettingsUiHandler extends UiHandler {
|
|||||||
|
|
||||||
this.settingsContainer.setVisible(true);
|
this.settingsContainer.setVisible(true);
|
||||||
this.setCursor(0);
|
this.setCursor(0);
|
||||||
|
this.setScrollCursor(0);
|
||||||
|
|
||||||
this.getUi().moveTo(this.settingsContainer, this.getUi().length - 1);
|
this.getUi().moveTo(this.settingsContainer, this.getUi().length - 1);
|
||||||
|
|
||||||
@ -394,6 +395,7 @@ export default class AbstractSettingsUiHandler extends UiHandler {
|
|||||||
clear() {
|
clear() {
|
||||||
super.clear();
|
super.clear();
|
||||||
this.settingsContainer.setVisible(false);
|
this.settingsContainer.setVisible(false);
|
||||||
|
this.setScrollCursor(0);
|
||||||
this.eraseCursor();
|
this.eraseCursor();
|
||||||
this.getUi().bgmBar.toggleBgmBar(this.scene.showBgmBar);
|
this.getUi().bgmBar.toggleBgmBar(this.scene.showBgmBar);
|
||||||
if (this.reloadRequired) {
|
if (this.reloadRequired) {
|
||||||
|
Loading…
Reference in New Issue
Block a user