LoadingScene: use proper class syntax

This commit is contained in:
Max Berger
2026-03-15 00:32:47 +01:00
parent e4d9bd7fb8
commit 01ad65efd2
2 changed files with 12 additions and 9 deletions

View File

@@ -26,13 +26,13 @@ import { Scene } from "./scene_manager.js";
*/
export class LoadingScene {
constructor() {
let html_scene = document.getElementById("loadingscene");
this.show = function () {
html_scene.classList.remove("hidden");
};
this.hide = function () {
html_scene.classList.add("hidden");
};
this.release = function () { };
this.html_scene = document.getElementById("loadingscene");
}
show() {
this.html_scene.classList.remove("hidden");
}
hide() {
this.html_scene.classList.add("hidden");
}
release() { }
}