Minor adjustments

This commit is contained in:
tobspr 2020-09-19 18:57:14 +02:00
parent d0aa6db630
commit fe97d28674
5 changed files with 6 additions and 5 deletions

View File

@ -480,7 +480,7 @@ canvas {
}
}
.hint {
.prefab_GameHint {
position: absolute;
@include S(left, 20px);
@include S(right, 20px);

View File

@ -14,7 +14,7 @@
flex-direction: column;
}
.hint {
.prefab_GameHint {
position: absolute;
@include S(bottom, 40px);
@include S(left, 20px);

View File

@ -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)",

View File

@ -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);
}
}

View File

@ -27,7 +27,7 @@ export class PreloadState extends GameState {
</span>
</div>
</div>
<span class="hint"></span>
<span class="prefab_GameHint"></span>
`;
}
@ -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;