|
@ -36,6 +36,14 @@ export default class Style { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
refreshHtml() { |
|
|
refreshHtml() { |
|
|
|
|
|
this.refreshCardOnDeck(); |
|
|
|
|
|
|
|
|
|
|
|
this.showPlayerDeck(this.game.currentPlayerInstanz, true); |
|
|
|
|
|
|
|
|
|
|
|
this.refreshDebug(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
refreshCardOnDeck(){ |
|
|
if (this._cardOnDeck !== this.game.cardOnDeck) { |
|
|
if (this._cardOnDeck !== this.game.cardOnDeck) { |
|
|
console.log(" ewfw") |
|
|
console.log(" ewfw") |
|
|
this.putCardAnim(); |
|
|
this.putCardAnim(); |
|
@ -44,10 +52,6 @@ export default class Style { |
|
|
this.firstPut.attr('src', './img/stackCards/' + this.game.cardOnDeck.color + '/' + this.game.cardOnDeck.name + '.png'); |
|
|
this.firstPut.attr('src', './img/stackCards/' + this.game.cardOnDeck.color + '/' + this.game.cardOnDeck.name + '.png'); |
|
|
this.firstPutAnim.attr('src', './img/stackCards/' + this.game.cardOnDeck.color + '/' + this.game.cardOnDeck.name + '.png'); |
|
|
this.firstPutAnim.attr('src', './img/stackCards/' + this.game.cardOnDeck.color + '/' + this.game.cardOnDeck.name + '.png'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.showPlayerDeck(this.game.currentPlayerInstanz, true); |
|
|
|
|
|
|
|
|
|
|
|
this.refreshDebug(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
refreshDebug() { |
|
|
refreshDebug() { |
|
@ -136,6 +140,7 @@ export default class Style { |
|
|
player.putCard(i); |
|
|
player.putCard(i); |
|
|
card.css('top', yPos - height * 0.2); |
|
|
card.css('top', yPos - height * 0.2); |
|
|
card.css('opacity', 0); |
|
|
card.css('opacity', 0); |
|
|
|
|
|
this.refreshCardOnDeck(); |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.refreshHtml(); |
|
|
this.refreshHtml(); |
|
|
|
|
|
|
|
|