From df0db0d310811a3d1f71115b0001d548c843b4d3 Mon Sep 17 00:00:00 2001
From: ReformCopyright <magnus@kibibyte.se>
Date: Fri, 12 Jul 2019 02:11:16 +0200
Subject: [PATCH] Set z-index on .dialogue-bubble in order to start a stacking
 context, and hide the game screen when starting an epilogue just to be sure.

Also delete old comments about transitioning from the title screen because testing.
---
 css/spni.css       | 1 +
 js/spniEpilogue.js | 2 +-
 js/spniGallery.js  | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/css/spni.css b/css/spni.css
index d6a893f54d0..4e3be4a6be0 100644
--- a/css/spni.css
+++ b/css/spni.css
@@ -878,6 +878,7 @@ label {
 .dialogue-bubble {
     width: 100%;
     position: absolute;
+    z-index: 0;
     font-size: 120%;
     background: #F5F5F5;
     border-radius: 1rem;
diff --git a/js/spniEpilogue.js b/js/spniEpilogue.js
index 9495fd33e78..2a3efad8a0d 100644
--- a/js/spniEpilogue.js
+++ b/js/spniEpilogue.js
@@ -930,7 +930,7 @@ function doEpilogue() {
 
   loadEpilogue(chosenEpilogue);
 
-  screenTransition($titleScreen, $epilogueScreen); //currently transitioning from title screen, because this is for testing
+  screenTransition($gameScreen, $epilogueScreen);
   $epilogueSelectionModal.modal("hide");
 }
 
diff --git a/js/spniGallery.js b/js/spniGallery.js
index a1a1f542624..748f402e531 100644
--- a/js/spniGallery.js
+++ b/js/spniGallery.js
@@ -555,7 +555,7 @@ function doEpilogueFromGallery(){
 			epilogueContainer.dataset.scene = -1;
 		
 			loadEpilogue(chosenEpilogue); //initialise buttons and text boxes
-			screenTransition($galleryScreen, $epilogueScreen); //currently transitioning from title screen, because this is for testing
+			screenTransition($galleryScreen, $epilogueScreen);
 			$epilogueSelectionModal.modal("hide");
 		}
 	);
-- 
GitLab