aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-02-13 22:22:55 +0100
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-02-13 22:22:55 +0100
commit262485677ed2bad1e30f59c8ba5dfeadf4611b04 (patch)
tree76ac3465bce3ee3015dd032fdcea1eb9fe3f83c1
parent24f95d33f5edb0169529e5c36323fca4496539a4 (diff)
downloadFlightCore-feat/launch-options-ui.tar.gz
FlightCore-feat/launch-options-ui.zip
wip: Update dev UI for launch optionsfeat/launch-options-ui
-rw-r--r--src-vue/src/views/DeveloperView.vue18
1 files changed, 13 insertions, 5 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index f3847d36..d44eb6fb 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -35,14 +35,15 @@
<h3>Testing:</h3>
- <el-button type="primary" @click="launchGameWithoutChecks">
- Launch Northstar (bypass all checks)
- </el-button>
+ <el-checkbox v-model="launchNorthstarBypassChecks" label="Bypass all checks" />
+ <el-checkbox v-model="launchNorthstarViaSteam" label="Launch via Steam" />
- <el-button type="primary" @click="launchGameViaSteam">
- Launch Northstar via Steam
+ <el-button type="primary" @click="launchNorthstarWithOptions">
+ Launch Northstar with options
</el-button>
+ <br />
+
<el-button type="primary" @click="installLauncherGitMain">
Install launcher from main branch
</el-button>
@@ -168,6 +169,8 @@ export default defineComponent({
discord_release_announcement_text: "",
first_tag: { label: '', value: { name: '' } },
second_tag: { label: '', value: { name: '' } },
+ launchNorthstarBypassChecks: true,
+ launchNorthstarViaSteam: false,
ns_release_tags: [] as TagWrapper[],
ns_versions: [] as NorthstarThunderstoreReleaseWrapper[],
selected_ns_version: { label: '', value: { package: '', version: '' } } as NorthstarThunderstoreReleaseWrapper,
@@ -220,6 +223,11 @@ export default defineComponent({
console.error(error);
});
},
+ async launchNorthstarWithOptions() {
+ let launch_options: NorthstarLaunchOptions = { bypass_checks: this.launchNorthstarBypassChecks, launch_via_steam: this.launchNorthstarViaSteam };
+ this.$store.commit('launchGame', launch_options);
+ },
+ // todo, remove the two below
async launchGameWithoutChecks() {
let launch_options: NorthstarLaunchOptions = { bypass_checks: true, launch_via_steam: false };
this.$store.commit('launchGame', launch_options);