summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--img-archive/backgrounds/background-papyrus1.jpg (renamed from sw-ui/src/main/resources/images/background-papyrus1.jpg)bin100272 -> 100272 bytes
-rw-r--r--img-archive/backgrounds/background-papyrus2.jpg (renamed from sw-ui/src/main/resources/images/background-papyrus2.jpg)bin885805 -> 885805 bytes
-rw-r--r--img-archive/wonder-symbol-bright.jpg (renamed from sw-ui/src/main/resources/images/tokens/wonder-symbol-bright.jpg)bin22698 -> 22698 bytes
-rw-r--r--img-archive/wonder-symbol.png (renamed from sw-ui/src/main/resources/images/tokens/wonder-symbol.png)bin26484 -> 26484 bytes
-rw-r--r--img-archive/wonder-upgrade.png (renamed from sw-ui/src/main/resources/images/tokens/wonder-upgrade.png)bin26743 -> 26743 bytes
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameScene.kt4
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt6
-rw-r--r--sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/home/HomeStyles.kt2
-rw-r--r--sw-ui/src/main/resources/images/backgrounds/papyrus.jpg (renamed from sw-ui/src/main/resources/images/background-papyrus3.jpg)bin480677 -> 480677 bytes
-rw-r--r--sw-ui/src/main/resources/images/backgrounds/zeus-temple.jpg (renamed from sw-ui/src/main/resources/images/background-zeus-temple.jpg)bin571089 -> 571089 bytes
-rw-r--r--sw-ui/src/main/resources/images/wonder-upgrade-bright.png (renamed from sw-ui/src/main/resources/images/tokens/wonder-upgrade-bright.png)bin26860 -> 26860 bytes
11 files changed, 6 insertions, 6 deletions
diff --git a/sw-ui/src/main/resources/images/background-papyrus1.jpg b/img-archive/backgrounds/background-papyrus1.jpg
index 57bdffcf..57bdffcf 100644
--- a/sw-ui/src/main/resources/images/background-papyrus1.jpg
+++ b/img-archive/backgrounds/background-papyrus1.jpg
Binary files differ
diff --git a/sw-ui/src/main/resources/images/background-papyrus2.jpg b/img-archive/backgrounds/background-papyrus2.jpg
index b6c8dc5f..b6c8dc5f 100644
--- a/sw-ui/src/main/resources/images/background-papyrus2.jpg
+++ b/img-archive/backgrounds/background-papyrus2.jpg
Binary files differ
diff --git a/sw-ui/src/main/resources/images/tokens/wonder-symbol-bright.jpg b/img-archive/wonder-symbol-bright.jpg
index e02eac2f..e02eac2f 100644
--- a/sw-ui/src/main/resources/images/tokens/wonder-symbol-bright.jpg
+++ b/img-archive/wonder-symbol-bright.jpg
Binary files differ
diff --git a/sw-ui/src/main/resources/images/tokens/wonder-symbol.png b/img-archive/wonder-symbol.png
index aa4551b4..aa4551b4 100644
--- a/sw-ui/src/main/resources/images/tokens/wonder-symbol.png
+++ b/img-archive/wonder-symbol.png
Binary files differ
diff --git a/sw-ui/src/main/resources/images/tokens/wonder-upgrade.png b/img-archive/wonder-upgrade.png
index 4b5d689a..4b5d689a 100644
--- a/sw-ui/src/main/resources/images/tokens/wonder-upgrade.png
+++ b/img-archive/wonder-upgrade.png
Binary files differ
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"
}
diff --git a/sw-ui/src/main/resources/images/background-papyrus3.jpg b/sw-ui/src/main/resources/images/backgrounds/papyrus.jpg
index 90350045..90350045 100644
--- a/sw-ui/src/main/resources/images/background-papyrus3.jpg
+++ b/sw-ui/src/main/resources/images/backgrounds/papyrus.jpg
Binary files differ
diff --git a/sw-ui/src/main/resources/images/background-zeus-temple.jpg b/sw-ui/src/main/resources/images/backgrounds/zeus-temple.jpg
index 5a28e933..5a28e933 100644
--- a/sw-ui/src/main/resources/images/background-zeus-temple.jpg
+++ b/sw-ui/src/main/resources/images/backgrounds/zeus-temple.jpg
Binary files differ
diff --git a/sw-ui/src/main/resources/images/tokens/wonder-upgrade-bright.png b/sw-ui/src/main/resources/images/wonder-upgrade-bright.png
index 0f59c068..0f59c068 100644
--- a/sw-ui/src/main/resources/images/tokens/wonder-upgrade-bright.png
+++ b/sw-ui/src/main/resources/images/wonder-upgrade-bright.png
Binary files differ
bgstack15