Fixed mode switching, started SplashPage IIFE

This commit is contained in:
unsettledgames
2021-07-14 22:48:53 +02:00
parent 6c8ec8e7a9
commit d81363ddd0
12 changed files with 68 additions and 60 deletions

View File

@@ -3,6 +3,8 @@
*/
const Dialogue = (() => {
let currentOpenDialogue = "";
let dialogueOpen = true;
const popUpContainer = document.getElementById("pop-up-container");
const cancelButtons = popUpContainer.getElementsByClassName('close-button');
@@ -68,9 +70,14 @@ const Dialogue = (() => {
}
}
function isOpen() {
return dialogueOpen;
}
return {
showDialogue,
closeDialogue
closeDialogue,
isOpen
}
})();