|
@ -1,3 +1,5 @@ |
|
|
|
|
|
import {CARD_COLORS} from "./uno.js"; |
|
|
|
|
|
|
|
|
export default class Style { |
|
|
export default class Style { |
|
|
|
|
|
|
|
|
constructor(gameInstanz) { |
|
|
constructor(gameInstanz) { |
|
@ -167,6 +169,37 @@ export default class Style { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
showSelectColor(card){ |
|
|
|
|
|
|
|
|
|
|
|
$('.selectColor').css('opacity', 1); |
|
|
|
|
|
|
|
|
|
|
|
$('#cc-green').on('click', ()=>{ |
|
|
|
|
|
card.color = CARD_COLORS[2]; |
|
|
|
|
|
card.putSelf(); |
|
|
|
|
|
this.hideSelectColor(); |
|
|
|
|
|
}) |
|
|
|
|
|
$('#cc-blue').on('click', ()=>{ |
|
|
|
|
|
card.color = CARD_COLORS[1]; |
|
|
|
|
|
card.putSelf(); |
|
|
|
|
|
this.hideSelectColor(); |
|
|
|
|
|
}) |
|
|
|
|
|
$('#cc-red').on('click', ()=>{ |
|
|
|
|
|
card.color = CARD_COLORS[3]; |
|
|
|
|
|
card.putSelf(); |
|
|
|
|
|
this.hideSelectColor(); |
|
|
|
|
|
}) |
|
|
|
|
|
$('#cc-yellow').on('click', ()=>{ |
|
|
|
|
|
card.color = CARD_COLORS[4]; |
|
|
|
|
|
card.putSelf(); |
|
|
|
|
|
this.hideSelectColor(); |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
hideSelectColor(){ |
|
|
|
|
|
$('.selectColor').css('opacity', 0); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
showPlayerDeck(player, click, lastDraw, anim) { |
|
|
showPlayerDeck(player, click, lastDraw, anim) { |
|
|
$('#playerDeck').html(""); |
|
|
$('#playerDeck').html(""); |
|
|
|
|
|
|
|
|