diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-28 13:50:52 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-28 13:50:52 +0100 |
commit | f965fd9812498369afff585fd6d14060bf41b77e (patch) | |
tree | 92093877d90be0d804eeb05bd71f10776b10d347 /sw-ui-kt/src | |
parent | Add hand components (diff) | |
download | seven-wonders-f965fd9812498369afff585fd6d14060bf41b77e.tar.gz seven-wonders-f965fd9812498369afff585fd6d14060bf41b77e.tar.bz2 seven-wonders-f965fd9812498369afff585fd6d14060bf41b77e.zip |
Add highlight for "just played" cards
Diffstat (limited to 'sw-ui-kt/src')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt index 4324bad2..dd67757a 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt @@ -92,7 +92,8 @@ private fun RBuilder.tableCard(card: TableCard, indexInColumn: Int, block: Style } } block() - cardImage(card = card) { + val highlightColor = if (card.playedDuringLastMove) Color.gold else null + cardImage(card = card, highlightColor = highlightColor) { css { maxWidth = 10.vw maxHeight = 25.vh |