Files
DoubleSnake/frontend/game/scripts/Game/UI/UIManager.js
2025-04-08 17:21:56 +02:00

23 lines
568 B
JavaScript

class UIManager{
constructor(){
this.mainDiv = document.getElementById("mainMenu");
this.gameTable = undefined;
}
// Erstellen des Grundgerüstes der UI
loadGameContent(){
this.mainDiv.innerHTML = "";
const body = document.body;
body.style.backgroundImage = "none";
body.style.backgroundRepeat = "no-repeat";
body.style.backgroundColor = "#3b3b3f";
this.gameTable = document.createElement("table");
this.mainDiv.appendChild(this.gameTable);
}
}
export default UIManager;