Skip to content

Commit 2624856

Browse files
committed
wip: Update dev UI for launch options
1 parent 24f95d3 commit 2624856

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

src-vue/src/views/DeveloperView.vue

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@
3535

3636
<h3>Testing:</h3>
3737

38-
<el-button type="primary" @click="launchGameWithoutChecks">
39-
Launch Northstar (bypass all checks)
40-
</el-button>
38+
<el-checkbox v-model="launchNorthstarBypassChecks" label="Bypass all checks" />
39+
<el-checkbox v-model="launchNorthstarViaSteam" label="Launch via Steam" />
4140

42-
<el-button type="primary" @click="launchGameViaSteam">
43-
Launch Northstar via Steam
41+
<el-button type="primary" @click="launchNorthstarWithOptions">
42+
Launch Northstar with options
4443
</el-button>
4544

45+
<br />
46+
4647
<el-button type="primary" @click="installLauncherGitMain">
4748
Install launcher from main branch
4849
</el-button>
@@ -168,6 +169,8 @@ export default defineComponent({
168169
discord_release_announcement_text: "",
169170
first_tag: { label: '', value: { name: '' } },
170171
second_tag: { label: '', value: { name: '' } },
172+
launchNorthstarBypassChecks: true,
173+
launchNorthstarViaSteam: false,
171174
ns_release_tags: [] as TagWrapper[],
172175
ns_versions: [] as NorthstarThunderstoreReleaseWrapper[],
173176
selected_ns_version: { label: '', value: { package: '', version: '' } } as NorthstarThunderstoreReleaseWrapper,
@@ -220,6 +223,11 @@ export default defineComponent({
220223
console.error(error);
221224
});
222225
},
226+
async launchNorthstarWithOptions() {
227+
let launch_options: NorthstarLaunchOptions = { bypass_checks: this.launchNorthstarBypassChecks, launch_via_steam: this.launchNorthstarViaSteam };
228+
this.$store.commit('launchGame', launch_options);
229+
},
230+
// todo, remove the two below
223231
async launchGameWithoutChecks() {
224232
let launch_options: NorthstarLaunchOptions = { bypass_checks: true, launch_via_steam: false };
225233
this.$store.commit('launchGame', launch_options);

0 commit comments

Comments
 (0)