Added Working Playground
This commit is contained in:
23
frontend/game/scripts/Game/UI/UIManager.js
Normal file
23
frontend/game/scripts/Game/UI/UIManager.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user