Replace ⚪ emoji with favicon.ico pokeball on throw ball button
This commit is contained in:
@@ -1306,7 +1306,7 @@ class Game {
|
|||||||
|
|
||||||
const throwBtn = document.createElement('button');
|
const throwBtn = document.createElement('button');
|
||||||
throwBtn.className = 'catch-action-btn btn-pixel btn-red';
|
throwBtn.className = 'catch-action-btn btn-pixel btn-red';
|
||||||
throwBtn.textContent = '⚪ THROW BALL';
|
throwBtn.innerHTML = '<img src="./favicon.ico" class="pokeball-icon"> THROW BALL';
|
||||||
throwBtn.disabled = this.state.pokeballs <= 0;
|
throwBtn.disabled = this.state.pokeballs <= 0;
|
||||||
if (this.state.pokeballs <= 0) throwBtn.style.opacity = '0.4';
|
if (this.state.pokeballs <= 0) throwBtn.style.opacity = '0.4';
|
||||||
throwBtn.addEventListener('click', () => this.throwPokeball(wild, canCatch));
|
throwBtn.addEventListener('click', () => this.throwPokeball(wild, canCatch));
|
||||||
|
|||||||
Reference in New Issue
Block a user