diff --git a/src/css/common.scss b/src/css/common.scss index 504f9b74..0c1814bc 100644 --- a/src/css/common.scss +++ b/src/css/common.scss @@ -480,7 +480,7 @@ canvas { } } - .hint { + .prefab_GameHint { position: absolute; @include S(left, 20px); @include S(right, 20px); diff --git a/src/css/states/ingame.scss b/src/css/states/ingame.scss index 29799f20..d67ee00f 100644 --- a/src/css/states/ingame.scss +++ b/src/css/states/ingame.scss @@ -14,7 +14,7 @@ flex-direction: column; } - .hint { + .prefab_GameHint { position: absolute; @include S(bottom, 40px); @include S(left, 20px); diff --git a/src/js/changelog.js b/src/js/changelog.js index 4165714d..4632dbcd 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -29,6 +29,7 @@ export const CHANGELOG = [ "Allow editing waypoints (by isaisstillalive)", "Show confirmation when cutting area which is too expensive to get pasted again (by isaisstillalive)", "Show mouse and camera tile on debug overlay (F4) (by dengr)", + "Added confirmation when deleting a savegame", "Fixed tunnels entrances connecting to exits sometimes when they shouldn't", "Added setting to auto select the extractor when pipetting a resource patch (by Exund)", "The initial belt planner direction is now based on the cursor movement (by MizardX)", diff --git a/src/js/game/game_loading_overlay.js b/src/js/game/game_loading_overlay.js index 431504d8..d6bb79f0 100644 --- a/src/js/game/game_loading_overlay.js +++ b/src/js/game/game_loading_overlay.js @@ -65,7 +65,7 @@ export class GameLoadingOverlay { internalAddHint(element) { const hint = document.createElement("span"); hint.innerHTML = randomChoice(T.tips); - hint.classList.add("hint"); + hint.classList.add("prefab_GameHint"); element.appendChild(hint); } } diff --git a/src/js/states/preload.js b/src/js/states/preload.js index 37b0d94e..b35b369d 100644 --- a/src/js/states/preload.js +++ b/src/js/states/preload.js @@ -27,7 +27,7 @@ export class PreloadState extends GameState { - + `; } @@ -62,7 +62,7 @@ export class PreloadState extends GameState { this.statusBarText = this.htmlElement.querySelector(".loadingStatus > .bar > .status"); /** @type {HTMLElement} */ - this.hintsText = this.htmlElement.querySelector(".hint"); + this.hintsText = this.htmlElement.querySelector(".prefab_GameHint"); this.lastHintShown = -1000; this.nextHintDuration = 0;