|
|
@ -41,12 +41,12 @@ export default class Style { |
|
|
|
$('.uno').css('filter', 'grayscale(80%)'); |
|
|
|
$('#sayUno-glow').css('opacity', 1); |
|
|
|
this.game.currentPlayerInstanz.sayUno(); |
|
|
|
this.game.currentPlayerInstanz.mustSayUno = false; |
|
|
|
}) |
|
|
|
|
|
|
|
$('#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(); |
|
|
@ -84,7 +84,6 @@ export default class Style { |
|
|
|
|
|
|
|
refreshCardOnDeck() { |
|
|
|
if (this._cardOnDeck !== this.game.cardOnDeck) { |
|
|
|
console.log(" ewfw") |
|
|
|
this.putCardAnim(); |
|
|
|
this._cardOnDeck = this.game.cardOnDeck; |
|
|
|
} else { |
|
|
@ -211,8 +210,6 @@ export default class Style { |
|
|
|
currentPlayerHand[i].xPos = (width * (((43 + cardAmount / 2 * 5) - percent)) / 100); |
|
|
|
currentPlayerHand[i].yPos = top; |
|
|
|
|
|
|
|
console.log(i + ' ' + currentPlayerHand[i].yPos); |
|
|
|
|
|
|
|
let card = $('#card' + i); |
|
|
|
|
|
|
|
let put = false; |
|
|
|
xxxxxxxxxx