diff --git a/docs/.vuepress/components/ButtonComponent.vue b/docs/.vuepress/components/ButtonComponent.vue
new file mode 100644
index 0000000..77d5c29
--- /dev/null
+++ b/docs/.vuepress/components/ButtonComponent.vue
@@ -0,0 +1,59 @@
+
+
The generator is brought to you by - Psychonauter, - Noki Doki + Psychonauter, + Noki Doki and Milk.
@@ -103,6 +116,8 @@ // Components import VersionSelect from "./VersionSelect"; import FormatSelect from "./FormatSelect"; +import SelectComponent from "./SelectComponent"; +import StageLoader from "./StageLoader"; import CodeInfo from "./CodeInfo"; import CodeList from "./CodeList"; import DownloadButton from "./DownloadButton"; @@ -119,17 +134,17 @@ import axios from "axios"; export default { mounted() { Promise.all( - gameVersions.map(async (v) => ({ + gameVersions.map(async v => ({ identifier: v.identifier, cheats: parseXml((await axios.get(`/codes/${v.identifier}.xml`)).data), - fastCodes: (await axios.get(`/codes/fast/${v.identifier}.json`)).data, + fastCodes: (await axios.get(`/codes/fast/${v.identifier}.json`)).data })) ) - .then((codes) => { + .then(codes => { localStorage.setItem("codes", JSON.stringify(codes)); this.isLoading = false; }) - .catch((err) => { + .catch(err => { if (localStorage.getItem("codes") != null) this.isLoading = false; }); }, @@ -141,6 +156,11 @@ export default { inspectingCode: null, selectedVersion: null, selectedFormat: null, + useStageLoader: false, + useStageLoaderOptions: [ + { value: false, label: "No" }, + { value: true, label: "Yes" } + ] }; }, methods: { @@ -148,19 +168,22 @@ export default { this.selectedVersion = e; this.selectedCheats = []; const storedCodes = JSON.parse(localStorage.getItem("codes")); - this.codes = storedCodes.find((c) => c.identifier === e).cheats; + this.codes = storedCodes.find(c => c.identifier === e).cheats; this.inspectingCode = null; }, onFormatChanged(e) { this.selectedFormat = e; }, + onStageLoaderChanged(e) { + this.useStageLoader = e; + }, onCheatSelectionChanged(e) { this.selectedCheats = e; }, inspect(code) { this.inspectingCode = code; - }, - }, + } + } }; \ No newline at end of file