|
35 | 35 |
|
36 | 36 | <h3>Testing:</h3> |
37 | 37 |
|
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" /> |
41 | 40 |
|
42 | | - <el-button type="primary" @click="launchGameViaSteam"> |
43 | | - Launch Northstar via Steam |
| 41 | + <el-button type="primary" @click="launchNorthstarWithOptions"> |
| 42 | + Launch Northstar with options |
44 | 43 | </el-button> |
45 | 44 |
|
| 45 | + <br /> |
| 46 | + |
46 | 47 | <el-button type="primary" @click="installLauncherGitMain"> |
47 | 48 | Install launcher from main branch |
48 | 49 | </el-button> |
@@ -168,6 +169,8 @@ export default defineComponent({ |
168 | 169 | discord_release_announcement_text: "", |
169 | 170 | first_tag: { label: '', value: { name: '' } }, |
170 | 171 | second_tag: { label: '', value: { name: '' } }, |
| 172 | + launchNorthstarBypassChecks: true, |
| 173 | + launchNorthstarViaSteam: false, |
171 | 174 | ns_release_tags: [] as TagWrapper[], |
172 | 175 | ns_versions: [] as NorthstarThunderstoreReleaseWrapper[], |
173 | 176 | selected_ns_version: { label: '', value: { package: '', version: '' } } as NorthstarThunderstoreReleaseWrapper, |
@@ -220,6 +223,11 @@ export default defineComponent({ |
220 | 223 | console.error(error); |
221 | 224 | }); |
222 | 225 | }, |
| 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 |
223 | 231 | async launchGameWithoutChecks() { |
224 | 232 | let launch_options: NorthstarLaunchOptions = { bypass_checks: true, launch_via_steam: false }; |
225 | 233 | this.$store.commit('launchGame', launch_options); |
|
0 commit comments