From 894cbd27c4d7363dc1fba56bf1139c44d5c118c5 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Mon, 22 Feb 2021 19:40:21 +0100 Subject: Clarify lobby table name --- .../org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt | 2 +- .../main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Table.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-ui') diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt index a5d5dd76..fc238956 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/RadialPlayerList.kt @@ -22,7 +22,7 @@ fun RBuilder.radialPlayerList( .growWithPlaceholders(targetSize = 3) .withUserFirst(currentPlayer) - val tableImg = buildElement { table(200.px, 15.px) } + val tableImg = buildElement { lobbyWoodenTable(diameter = 200.px, borderSize = 15.px) } return radialList( items = playerItems, diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Table.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Table.kt index 7051652a..81e95893 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Table.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Table.kt @@ -11,7 +11,7 @@ import styled.styledDiv private const val FIRE_REFLECTION_COLOR = "#b85e00" -fun RBuilder.table(diameter: LinearDimension, borderSize: LinearDimension = 20.px) { +fun RBuilder.lobbyWoodenTable(diameter: LinearDimension, borderSize: LinearDimension = 20.px) { circle(diameter) { css { backgroundColor = Color("#3d1e0e") -- cgit