|
|
@ -42,6 +42,10 @@ export default class Style { |
|
|
|
}) |
|
|
|
|
|
|
|
$('#drawCard').on('click', () => { |
|
|
|
if(this.game.currentPlayerInstanz.mustSayUno){ |
|
|
|
this.game.currentPlayerInstanz.mustSayUno = false; |
|
|
|
console.log(this.game.currentPlayerInstanz.mustSayUno) |
|
|
|
} |
|
|
|
this.game.currentPlayerInstanz.drawCard(1, true, true); |
|
|
|
this.refreshDebug(); |
|
|
|
}); |
|
|
@ -53,6 +57,10 @@ export default class Style { |
|
|
|
this.drawCardAnim(false, false); |
|
|
|
}); |
|
|
|
this.firstDraw.on('click', () => { |
|
|
|
if(this.game.currentPlayerInstanz.mustSayUno){ |
|
|
|
this.game.currentPlayerInstanz.mustSayUno = false; |
|
|
|
this.game.style.hideUnoButton(); |
|
|
|
} |
|
|
|
|
|
|
|
let playerInstanz = this.game.currentPlayerInstanz; |
|
|
|
|
|
|
@ -109,15 +117,17 @@ export default class Style { |
|
|
|
} |
|
|
|
|
|
|
|
showUnoButton(){ |
|
|
|
$('#uno').css('opacity', 1); |
|
|
|
$('.uno').css('transition', 'width ease-in-out 0.5s'); |
|
|
|
$('#sayUno-glow').css('transition', 'width ease-in-out 0.5s, opacity 0.5s'); |
|
|
|
$('.uno').css('filter', 'grayscale(0%)'); |
|
|
|
$('#sayUno').css('opacity', 1); |
|
|
|
this.unoHover = false; |
|
|
|
this._unoClicked = false; |
|
|
|
this.startUnoLoop(); |
|
|
|
} |
|
|
|
|
|
|
|
hideUnoButton(){ |
|
|
|
$('#uno').css('opacity', 0); |
|
|
|
|
|
|
|
$('#sayUno').css('opacity', 0); |
|
|
|
} |
|
|
|
|
|
|
|
startUnoLoop() { |
|
|
|