Fix hints lingering forever
This commit is contained in:
parent
54823f62bf
commit
69a344595c
@ -1287,6 +1287,7 @@ class Player extends PrimaryView {
|
|||||||
this.time_el.classList.remove('--frozen');
|
this.time_el.classList.remove('--frozen');
|
||||||
this.time_el.classList.remove('--danger');
|
this.time_el.classList.remove('--danger');
|
||||||
this.time_el.classList.remove('--warning');
|
this.time_el.classList.remove('--warning');
|
||||||
|
this.hint_el.parentNode.classList.remove('--visible');
|
||||||
this.root.classList.remove('--replay-playback');
|
this.root.classList.remove('--replay-playback');
|
||||||
this.root.classList.remove('--replay-recording');
|
this.root.classList.remove('--replay-recording');
|
||||||
this.root.classList.remove('--bonus-visible');
|
this.root.classList.remove('--bonus-visible');
|
||||||
@ -1557,9 +1558,7 @@ class Player extends PrimaryView {
|
|||||||
|
|
||||||
// TODO can we do this only if they actually changed?
|
// TODO can we do this only if they actually changed?
|
||||||
this.chips_el.textContent = this.level.chips_remaining;
|
this.chips_el.textContent = this.level.chips_remaining;
|
||||||
if (this.level.chips_remaining === 0) {
|
this.chips_el.classList.toggle('--done', this.level.chips_remaining === 0);
|
||||||
this.chips_el.classList.add('--done');
|
|
||||||
}
|
|
||||||
|
|
||||||
this.time_el.classList.toggle('--frozen', this.level.time_remaining === null || this.level.timer_paused);
|
this.time_el.classList.toggle('--frozen', this.level.time_remaining === null || this.level.timer_paused);
|
||||||
if (this.level.time_remaining === null) {
|
if (this.level.time_remaining === null) {
|
||||||
|
|||||||
@ -1346,10 +1346,9 @@ dl.score-chart .-star {
|
|||||||
display: none;
|
display: none;
|
||||||
font-size: calc(var(--tile-height) * var(--scale) / 3);
|
font-size: calc(var(--tile-height) * var(--scale) / 3);
|
||||||
font-family: serif;
|
font-family: serif;
|
||||||
font-style: italic;
|
|
||||||
color: hsl(45, 100%, 60%);
|
color: hsl(45, 100%, 60%);
|
||||||
background: #080808;
|
background: #080808;
|
||||||
border: 1px inset #202020;
|
border: 2px inset #202020;
|
||||||
}
|
}
|
||||||
#player-game-area > .player-hint-wrapper > .player-hint {
|
#player-game-area > .player-hint-wrapper > .player-hint {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user