-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add custom game version to dropdown, add custom script launch debug p…
…age, prevent redownloading installed game versions, fixed bug with trying dl engine via prd
- Loading branch information
Showing
7 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<route lang="json5"> | ||
{ meta: { title: "Script Launcher", order: 5 } } | ||
</route> | ||
|
||
<template> | ||
<div class="flex-col gap-md fullheight"> | ||
<Textarea v-model="script" spellcheck="false" /> | ||
<Button class="green" @click="launch">Launch</Button> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from "vue"; | ||
import Button from "@/components/controls/Button.vue"; | ||
import Textarea from "@/components/controls/Textarea.vue"; | ||
import { defaultGameVersion } from "@/config/default-versions"; | ||
const script = ref(`[game] { | ||
[ais] { | ||
} | ||
[allyteam0] { | ||
numallies=0; | ||
} | ||
[team0] { | ||
teamleader=0; | ||
allyteam=0; | ||
} | ||
[player0] { | ||
team=0; | ||
name=player; | ||
} | ||
mapname=Red Comet Remake 1.8; | ||
myplayername=player; | ||
ishost=1; | ||
gametype=${defaultGameVersion}; | ||
}`); | ||
function launch() { | ||
api.game.launch(script.value); | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.textarea { | ||
height: 100%; | ||
} | ||
</style> |