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