Minor tweak for starter select screen
parent
264c1c28ef
commit
eae0d907c5
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue