Minor tweak for starter select screen

This commit is contained in:
Flashfyre committed 2024-01-01 11:17:20 -05:00
1 parent 264c1c28ef
commit eae0d907c5
1 file changed
+4 -3
+4 -3
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();
}; };