new commit

This commit is contained in:
2025-05-09 00:00:55 +02:00
parent 4f01013d42
commit bf9406f924
11 changed files with 46 additions and 96 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 KiB

BIN
app/assets/img/sulli.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 KiB

View File

@@ -7,7 +7,7 @@ const audioPourcentageLabel = document.querySelector("label[for='audioVolume']")
const audio = new Audio()
function startAudio() {
audio.src = "./assets/audio/Golden Hill (Radio Edit).mp3"
audio.src = "./assets/audio/main_menu.mp3"
audio.loop = true
audio.play()
audio.onended = () => {
@@ -76,7 +76,7 @@ function updateVolume(value) {
}
function logout() {
localStorage.removeItem("user")
system.call("auth::reset")
document.location.href = './login.html'
}
@@ -84,12 +84,6 @@ system.result("server::ping", pong => {
playersStatus.innerText = `${pong.players.online}/${pong.players.max}`
})
system.result("player::profile", playerProfile => {
if (!localStorage.getItem("user")) {
localStorage.setItem("user", JSON.stringify(playerProfile))
}
})
function handleOptionsChanges(key, value) {
system.call("game::optionSet", { key, value })
}
@@ -123,6 +117,11 @@ system.result("game::launch", info => {
}
})
system.result("player::profile", playerProfile => {
console.log(playerProfile)
})
window.onload = () => {
system.call("hardware::ramInformation")
system.call("game::parseOptions")

View File

@@ -18,13 +18,4 @@ system.result("auth::microsoft", () => {
system.result("auth::refresh", () => {
selectLoginType("select")
})
window.onload = () => {
if (localStorage.getItem("user")) {
system.call("auth::refresh", {
user: JSON.parse(localStorage.getItem("user"))
})
selectLoginType("token")
}
}
})