mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-21 22:58:24 +00:00
launch game with official button
This commit is contained in:
parent
6e73fb0bbf
commit
77fbee5fbf
@ -1 +1 @@
|
||||
{"accessToken":"PhF6gNpYzbtGBwyxQLGAFObt441zQ4uuGjO8L4ZsR02QjIty","port":51786}
|
||||
{"accessToken":"ToV6wKKVBBrgS1L3fMacE3Am--oguUf3t0dTffiCZjFQJFJE","port":52555}
|
@ -8,7 +8,7 @@
|
||||
<body>
|
||||
<div id="halvesContainer">
|
||||
<div id="firstHalf">
|
||||
<button class="playBtn">Play Official</button>
|
||||
<button class="playBtn" onclick="launchOfficial()">Play Official</button>
|
||||
</div>
|
||||
<div id="secondHalf">
|
||||
<button class="playBtn">Play Private</button>
|
||||
|
@ -53,3 +53,9 @@ async function setGenshinImpactFolder() {
|
||||
config.genshinImpactFolder = folder
|
||||
Neutralino.storage.setData('config', JSON.stringify(config))
|
||||
}
|
||||
|
||||
async function launchOfficial() {
|
||||
const config = await getCfg()
|
||||
|
||||
Neutralino.os.execCommand(config.genshinImpactFolder + '/Genshin Impact Game/GenshinImpact.exe')
|
||||
}
|
@ -76,7 +76,7 @@ body {
|
||||
/* Move the button to the position on the png */
|
||||
#firstHalf button {
|
||||
position: relative;
|
||||
transform: translate(130px, 500px);
|
||||
width: 400px;
|
||||
height: 70px;
|
||||
transform: translate(115px, 480px);
|
||||
width: 300px;
|
||||
height: 60px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user