Minor tweak for starter select screen

pull/14/head
Flashfyre 2024-01-01 11:17:20 -05:00
parent 264c1c28ef
commit eae0d907c5
1 changed files with 4 additions and 3 deletions

View File

@ -357,7 +357,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
if (this.startCursorObj.visible) {
switch (button) {
case Button.ACTION:
if (this.tryStart())
if (this.tryStart(true))
success = true;
else
error = true;
@ -801,7 +801,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
return true;
}
tryStart(): boolean {
tryStart(manualTrigger: boolean = false): boolean {
if (!this.starterGens.length)
return false;
@ -809,6 +809,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
const cancel = () => {
ui.setMode(Mode.STARTER_SELECT);
if (!manualTrigger)
this.popStarter();
this.clearText();
};