mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-22 07:08:11 +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>
|
<body>
|
||||||
<div id="halvesContainer">
|
<div id="halvesContainer">
|
||||||
<div id="firstHalf">
|
<div id="firstHalf">
|
||||||
<button class="playBtn">Play Official</button>
|
<button class="playBtn" onclick="launchOfficial()">Play Official</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="secondHalf">
|
<div id="secondHalf">
|
||||||
<button class="playBtn">Play Private</button>
|
<button class="playBtn">Play Private</button>
|
||||||
|
@ -53,3 +53,9 @@ async function setGenshinImpactFolder() {
|
|||||||
config.genshinImpactFolder = folder
|
config.genshinImpactFolder = folder
|
||||||
Neutralino.storage.setData('config', JSON.stringify(config))
|
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 */
|
/* Move the button to the position on the png */
|
||||||
#firstHalf button {
|
#firstHalf button {
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: translate(130px, 500px);
|
transform: translate(115px, 480px);
|
||||||
width: 400px;
|
width: 300px;
|
||||||
height: 70px;
|
height: 60px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user