mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
terrible ip textbox for testing
This commit is contained in:
parent
9f672703fe
commit
d298b5b2f4
@ -1 +1 @@
|
||||
{"accessToken":"koqlczs0mi0QuA4uZtkaZmPT9H3xQO-MaifZIUVW_kkp8HBD","port":62332}
|
||||
{"accessToken":"5MwsrKLchb8OnvKTd7b00-wJDz6E-6MQbmre-TC7jiEs6mJs","port":57800}
|
@ -12,6 +12,7 @@
|
||||
</div>
|
||||
<div id="secondHalf">
|
||||
<button class="playBtn" onclick="launchPrivate()">Play Private</button>
|
||||
<input type="text" id="ip" placeholder="IP Address" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -75,11 +75,13 @@ async function launchOfficial() {
|
||||
}
|
||||
|
||||
async function launchPrivate() {
|
||||
const ip = 'localhost'
|
||||
const ip = document.getElementById('ip').value || 'localhost'
|
||||
const port = ''
|
||||
|
||||
const config = await getCfg()
|
||||
|
||||
console.log('connecting to ' + ip)
|
||||
|
||||
// Pass IP and game folder to the private server launcher
|
||||
Neutralino.os.execCommand(`${NL_CWD}/private_server_launch.cmd ${ip} "${config.genshinImpactFolder}"`).catch(e => console.log(e))
|
||||
}
|
@ -5,6 +5,10 @@ body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.playBtn:hover, .smolBtn:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user