feature/MAPG-235-basic-challenge-mode #48
@ -153,6 +153,10 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#goToStart {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 599px) {
|
@media screen and (max-width: 599px) {
|
||||||
#mapName {
|
#mapName {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -301,7 +301,7 @@ const GameType = Object.freeze({ 'SINGLE': 0, 'MULTI': 1, 'CHALLENGE': 2 });
|
|||||||
|
|
||||||
Game.transitToResultMap();
|
Game.transitToResultMap();
|
||||||
Game.showSummary();
|
Game.showSummary();
|
||||||
document.getElementById('continueButton').style.display = 'none';
|
//document.getElementById('continueButton').style.display = 'none';
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -763,11 +763,13 @@ const GameType = Object.freeze({ 'SINGLE': 0, 'MULTI': 1, 'CHALLENGE': 2 });
|
|||||||
scoreInfo.children[1].style.display = 'block';
|
scoreInfo.children[1].style.display = 'block';
|
||||||
document.getElementById('showSummaryButton').style.display = null;
|
document.getElementById('showSummaryButton').style.display = null;
|
||||||
|
|
||||||
if (!roomId || Game.multi.owner) {
|
if (Game.type == GameType.SINGLE || Game.multi.owner) {
|
||||||
document.getElementById('startNewGameButton').style.display = 'block';
|
document.getElementById('startNewGameButton').style.display = 'block';
|
||||||
if (!Game.readyToContinue) {
|
if (!Game.readyToContinue) {
|
||||||
document.getElementById('startNewGameButton').disabled = true;
|
document.getElementById('startNewGameButton').disabled = true;
|
||||||
}
|
}
|
||||||
|
} else if (Game.type == GameType.CHALLENGE) {
|
||||||
|
document.getElementById('goToStart').style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultBounds = new google.maps.LatLngBounds();
|
var resultBounds = new google.maps.LatLngBounds();
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
<button id="continueButton" class="fullWidth">Continue</button>
|
<button id="continueButton" class="fullWidth">Continue</button>
|
||||||
<button id="showSummaryButton" class="fullWidth">Show summary</button>
|
<button id="showSummaryButton" class="fullWidth">Show summary</button>
|
||||||
<button id="startNewGameButton" class="fullWidth">Play this map again</button>
|
<button id="startNewGameButton" class="fullWidth">Play this map again</button>
|
||||||
|
<a href="/" id="goToStart"><button class="fullWidth">Go back to the menu</button></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="navigation" class="circleControl">
|
<div id="navigation" class="circleControl">
|
||||||
|
Loading…
Reference in New Issue
Block a user