diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-17 18:09:15 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-17 18:11:55 +0200 |
commit | b2f170faf70a35ae24b851ccc59c7344f840ae74 (patch) | |
tree | bf93d8dfed38a3271214fbf3c7fd85d479356cf6 /sw-ui/src/main/kotlin/org/luxons | |
parent | Fix static inclusion from frontend (diff) | |
download | seven-wonders-b2f170faf70a35ae24b851ccc59c7344f840ae74.tar.gz seven-wonders-b2f170faf70a35ae24b851ccc59c7344f840ae74.tar.bz2 seven-wonders-b2f170faf70a35ae24b851ccc59c7344f840ae74.zip |
Reorg image paths and move unused to archive
Diffstat (limited to 'sw-ui/src/main/kotlin/org/luxons')
3 files changed, 6 insertions, 6 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt index 54cdd687..5d5cbcaa 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt @@ -52,7 +52,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta override fun RBuilder.render() { styledDiv { css { - background = "url('images/background-papyrus3.jpg')" + background = "url('images/background/papyrus.jpg')" backgroundSize = "cover" +GlobalStyles.fullscreen } @@ -179,7 +179,7 @@ private class GameScene(props: GameSceneProps) : RComponent<GameSceneProps, RSta } private fun StyledDOMBuilder<DIV>.upgradeWonderSymbol() { - styledImg(src = "/images/tokens/wonder-upgrade-bright.png") { + styledImg(src = "/images/wonder-upgrade-bright.png") { css { width = 8.rem position = Position.absolute diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt index ea80a827..a95da5ac 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt @@ -62,7 +62,7 @@ private fun RBuilder.fixedResources(resources: List<CountedResource>) { display = Display.flex } resources.forEach { - tokenWithCount(tokenName = getTokenName(it.type), count = it.count) { + tokenWithCount(tokenName = getResourceTokenName(it.type), count = it.count) { attrs { key = it.type.toString() } css { marginLeft = 1.rem } } @@ -93,7 +93,7 @@ private fun RBuilder.resourceChoice(types: Set<ResourceType>, block: StyledDOMBu } block() for ((i, t) in types.withIndex()) { - tokenImage(tokenName = getTokenName(t)) { + tokenImage(tokenName = getResourceTokenName(t)) { attrs { this.key = t.toString() } } if (i < types.indices.last) { @@ -129,7 +129,7 @@ private fun RBuilder.tokenImage(tokenName: String, block: StyledDOMBuilder<IMG>. private fun getTokenImagePath(tokenName: String) = "/images/tokens/$tokenName.png" -private fun getTokenName(resourceType: ResourceType) = "resources/${resourceType.toString().toLowerCase()}" +private fun getResourceTokenName(resourceType: ResourceType) = "resources/${resourceType.toString().toLowerCase()}" private fun CSSBuilder.productionBarStyle() { alignItems = Align.center diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/HomeStyles.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/HomeStyles.kt index 624f430c..0fae650e 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/HomeStyles.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/HomeStyles.kt @@ -6,7 +6,7 @@ import styled.StyleSheet object HomeStyles : StyleSheet("HomeStyles", isStatic = true) { val zeusBackground by css { - background = "url('images/background-zeus-temple.jpg') center no-repeat" + background = "url('images/background/zeus-temple.jpg') center no-repeat" backgroundSize = "cover" } |