Fix softlock with title screen when opening submenus

This commit is contained in:
Flashfyre committed 2024-03-15 18:02:05 -04:00
1 parent 7946938828
commit 1bae39d80e
5 files changed
+10 -6

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@ import AbstractOptionSelectUiHandler from "./abstact-option-select-ui-handler";
import { Mode } from "./ui";
export default class OptionSelectUiHandler extends AbstractOptionSelectUiHandler {
constructor(scene: BattleScene) {
super(scene, Mode.OPTION_SELECT);
constructor(scene: BattleScene, mode: Mode = Mode.OPTION_SELECT) {
super(scene, mode);
}
getWindowWidth(): integer {