Replace ⚪ emoji with favicon.ico pokeball image in HUD ball counter
This commit is contained in:
1 parent
1791430923
commit
7e52a65102
4 files changed
+12
-2
No files matched your search
@@ -1555,7 +1555,7 @@ class Game {
|
||||
if(bar){ bar.style.width=pct+'%'; bar.style.background=pct<40?'var(--hp-green)':pct<75?'var(--hp-yellow)':'#60c8ff'; }
|
||||
|
||||
const pbEl = document.getElementById('pokeball-count');
|
||||
if (pbEl) pbEl.textContent = `⚪ ${this.state.pokeballs}`;
|
||||
if (pbEl) pbEl.innerHTML = `<img src="./favicon.ico" class="pokeball-icon"> ${this.state.pokeballs}`;
|
||||
|
||||
this.state.playerLevel = getPlayerLevel(this.state);
|
||||
}
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@
|
||||
<span class="prog-text" id="map-prog-text">0/100</span>
|
||||
</div>
|
||||
<div class="map-right">
|
||||
<span class="pokeball-count" id="pokeball-count" title="Pokéballs">⚪ 0</span>
|
||||
<span class="pokeball-count" id="pokeball-count" title="Pokéballs"><img src="./favicon.ico" class="pokeball-icon"> 0</span>
|
||||
<span class="music-toggle" id="music-toggle" title="Mute/Unmute Music">🎵</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user