From 409f21b03d4e38571a6587b0695bbc6461d791d0 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 23 Feb 2021 18:54:11 +0100 Subject: Add highlight for built wonder levels Resolves: https://github.com/joffrey-bion/seven-wonders/issues/111 --- .../main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw-ui/src/main/kotlin') 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.() -> 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 { -- cgit