From 77fbee5fbf637941182a2cc975b902289ccc00ab Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Tue, 19 Apr 2022 18:21:29 -0700 Subject: [PATCH] launch game with official button --- .tmp/auth_info.json | 2 +- resources/index.html | 2 +- resources/js/index.js | 6 ++++++ resources/style/index.css | 6 +++--- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.tmp/auth_info.json b/.tmp/auth_info.json index 1953e44..db9fe19 100644 --- a/.tmp/auth_info.json +++ b/.tmp/auth_info.json @@ -1 +1 @@ -{"accessToken":"PhF6gNpYzbtGBwyxQLGAFObt441zQ4uuGjO8L4ZsR02QjIty","port":51786} \ No newline at end of file +{"accessToken":"ToV6wKKVBBrgS1L3fMacE3Am--oguUf3t0dTffiCZjFQJFJE","port":52555} \ No newline at end of file diff --git a/resources/index.html b/resources/index.html index 2298de1..bd25b19 100644 --- a/resources/index.html +++ b/resources/index.html @@ -8,7 +8,7 @@
- +
diff --git a/resources/js/index.js b/resources/js/index.js index 37c39b6..785e145 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -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') +} \ No newline at end of file diff --git a/resources/style/index.css b/resources/style/index.css index dfe3b42..97d88fd 100644 --- a/resources/style/index.css +++ b/resources/style/index.css @@ -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; } \ No newline at end of file