diff --git a/resources/bg/private/1.png b/resources/bg/private/1.png
index cd8b6e9..6140560 100644
Binary files a/resources/bg/private/1.png and b/resources/bg/private/1.png differ
diff --git a/resources/index.html b/resources/index.html
index 2fade91..149ab3f 100644
--- a/resources/index.html
+++ b/resources/index.html
@@ -56,6 +56,15 @@
Auto updating is temporarily disabled. Check GitHub for the newest release.
+
+
+ Enable Server Launcher
+
+
+
+ Enable to server launcher tile for launcher a local Grasscutter instance.
+
+
@@ -88,7 +97,7 @@
-
diff --git a/resources/js/index.js b/resources/js/index.js
index 1980b46..b80660f 100644
--- a/resources/js/index.js
+++ b/resources/js/index.js
@@ -93,7 +93,8 @@ async function getCfg() {
const defaultConf = {
genshinImpactFolder: '',
lastConnect: '',
- enableKillswitch: false
+ enableKillswitch: false,
+ serverLaunchPanel: false
}
const cfgStr = await Neutralino.storage.getData('config').catch(e => {
// The data isn't set, so this is our first time opening
@@ -417,6 +418,21 @@ async function checkForUpdatesAndShow() {
}
}
+async function toggleServerLaunchSection() {
+ const serverPanel = document.querySelector('#thirdPanel')
+ const config = await getCfg()
+
+ if (serverPanel.style.display === 'none') {
+ serverPanel.style.removeProperty('display')
+ } else {
+ serverPanel.style.display = 'none'
+ }
+
+ // Save setting
+ config.serverLaunchPanel = !config.serverLaunchPanel
+ Neutralino.storage.setData('config', JSON.stringify(config))
+}
+
/**
* Set the game folder by opening a folder picker
*/
diff --git a/resources/style/index.css b/resources/style/index.css
index b6cbf23..6bac758 100644
--- a/resources/style/index.css
+++ b/resources/style/index.css
@@ -50,7 +50,7 @@ body {
}
#settingsPanel {
- width: 30%;
+ width: 35%;
height: 60%;
}
@@ -65,7 +65,7 @@ body {
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 10px 20%;
+ padding: 10px 10%;
}
.settingsRow {
@@ -104,7 +104,7 @@ body {
#settingsClose {
display: inline-block;
- margin-left: 65%;
+ margin-left: 70%;
transition: filter 0.1s ease-in-out;
}
@@ -365,7 +365,7 @@ body {
}
#secondControlContainer, #firstPanel button, #thirdPanel button {
- margin-top: 100%;
+ margin-top: 62vh;
}
#serverInput input, #serverInput img{