add preferred ending to stage loader
This commit is contained in:
parent
667cbb9a80
commit
911fec7603
1 changed files with 10 additions and 2 deletions
|
@ -145,6 +145,7 @@ export default {
|
||||||
levelOrderSelection: 'list',
|
levelOrderSelection: 'list',
|
||||||
postGameSelection: '0F00',
|
postGameSelection: '0F00',
|
||||||
generation: 0,
|
generation: 0,
|
||||||
|
preferredEnding: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -160,7 +161,7 @@ export default {
|
||||||
this.levelOrderSelection = e;
|
this.levelOrderSelection = e;
|
||||||
|
|
||||||
if (e === 'random') {
|
if (e === 'random') {
|
||||||
this.postGameSelection = '3400';
|
this.postGameSelection = this.preferredEnding ?? '3400';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateCode();
|
this.updateCode();
|
||||||
|
@ -205,7 +206,13 @@ export default {
|
||||||
|
|
||||||
this.selectedRoute = newRoute;
|
this.selectedRoute = newRoute;
|
||||||
|
|
||||||
if (ending) this.postGameSelection;
|
if (ending) {
|
||||||
|
this.preferredEnding = ending;
|
||||||
|
this.postGameSelection = ending;
|
||||||
|
} else {
|
||||||
|
this.preferredEnding = null;
|
||||||
|
}
|
||||||
|
|
||||||
this.updateCode();
|
this.updateCode();
|
||||||
},
|
},
|
||||||
onDragEnd() {
|
onDragEnd() {
|
||||||
|
@ -215,6 +222,7 @@ export default {
|
||||||
if (this.selectedRoute?.length > 0 && !confirm('Do you really want to clear the list?'))
|
if (this.selectedRoute?.length > 0 && !confirm('Do you really want to clear the list?'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
this.preferredEnding = null;
|
||||||
this.selectedRoute = [];
|
this.selectedRoute = [];
|
||||||
this.updateCode();
|
this.updateCode();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue