summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt
index c11928ea..085e43ed 100644
--- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt
+++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt
@@ -183,7 +183,8 @@ private fun RBuilder.boardToken(tokenName: String, count: Int, block: StyledDOMB
private fun RBuilder.wonderStageElement(stage: ApiWonderStage, block: StyledDOMBuilder<HTMLTag>.() -> Unit) {
val back = stage.cardBack
if (back != null) {
- cardBackImage(back) {
+ val highlightColor = if (stage.builtDuringLastMove) Color.gold else null
+ cardBackImage(cardBack = back, highlightColor = highlightColor) {
block()
}
} else {
bgstack15