Remove Dialogue:
-
+
Skippable FMVs:
-
+
Level Order:
-
+
Post Game:
-
+
-
@@ -53,8 +78,12 @@ import stageLoaderLevels from "../data/stageLoaderLevels.json";
import stageLoaderPresets from "../data/stageLoaderPresets.json";
export default {
+ props: {
+ fastCodes: { type: Object }
+ },
data() {
return {
+ selectedRoute: [],
stageLoaderLevelOptions: stageLoaderLevels,
stageLoaderPresetOptions: stageLoaderPresets,
removeDialogueOptions: [
@@ -85,26 +114,58 @@ export default {
};
},
methods: {
- onRemoveDialogueChanged(e) {
+ onRemoveDialogueSelectionChanged(e) {
this.removeDialogSelection = e;
},
- onSkippableFMVsChanged(e) {
+ onSkippableFMVsSelectionChanged(e) {
this.skippableFMVsSelection = e;
},
- onLevelOrderChanged(e) {
+ onLevelOrderSelectionChanged(e) {
this.levelOrderSelection = e;
},
onPostGameSelectionChanged(e) {
this.postGameSelection = e;
},
onStageLoaderLevelSelected(e) {
- return;
+ this.selectedRoute.push({
+ value: e
+ });
+ },
+ onStageLoaderLevelChanged(index, e) {
+ this.selectedRoute[index] = {
+ value: e
+ };
+ },
+ onLevelDeleted(e) {
+ this.selectedRoute.splice(e, 1);
},
onStageLoaderPresetSelected(e) {
- return;
+ if (
+ this.selectedRoute?.length > 0 &&
+ !confirm("Loading a preset will erase your current list. Continue?")
+ ) {
+ return;
+ }
+
+ const preset = e.split(";")[0];
+ const ending = e.split(";")[1];
+
+ const newRoute = [];
+
+ for (let i = 0; i <= preset.length - 4; i += 4)
+ newRoute.push({ value: preset.substr(i, 4) });
+
+ this.selectedRoute = newRoute;
+ this.postGameSelection = ending;
},
onClearList() {
- return;
+ if (
+ this.selectedRoute?.length > 0 &&
+ !confirm("Do you really want to clear the list?")
+ )
+ return;
+
+ this.selectedRoute = [];
}
}
};
@@ -117,7 +178,35 @@ export default {
padding-left: 2px;
}
+.config:not(:first-child) span {
+ margin-top: 10px;
+}
+
.config select {
width: 100%;
}
+
+ul {
+ list-style: none;
+ padding-left: 0;
+}
+
+ul li {
+ display: flex;
+ flex-wrap: nowrap;
+}
+
+.route-drag {
+ margin-right: 5px;
+ cursor: pointer;
+}
+
+.route-remove {
+ margin-left: 3px;
+ background: transparent;
+ border: none;
+ font-size: 1.2rem;
+ color: red;
+ cursor: pointer;
+}
\ No newline at end of file