Skip to content

Commit

Permalink
Display military points on the left side of the wonder instead of ove…
Browse files Browse the repository at this point in the history
…r it

Resolves #65
  • Loading branch information
ArchangelX360 committed Feb 20, 2021
1 parent 2c00002 commit 77f8f1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,24 @@ private fun RBuilder.wonderComponent(wonder: ApiWonder, military: Military) {
this.alt = "Wonder ${wonder.name}"
}
}
victoryPoints(military.victoryPoints) {
styledDiv {
css {
position = Position.absolute
top = 25.pct // below the wonder name
left = 60.pct
zIndex = 2 // go above the wonder, but below the table cards
top = 20.pct // below the wonder name
left = -(80.px)
display = Display.flex
flexDirection = FlexDirection.column
alignItems = Align.start
}
}
defeatTokenCount(military.nbDefeatTokens) {
css {
position = Position.absolute
top = 25.pct // below the wonder name
left = 80.pct
zIndex = 2 // go above the wonder, but below the table cards
victoryPoints(military.victoryPoints) {
css {
marginBottom = 5.px
}
}
defeatTokenCount(military.nbDefeatTokens) {
css {
marginTop = 5.px
}
}
}
wonder.stages.forEachIndexed { index, stage ->
Expand Down
Binary file modified sw-ui/src/main/resources/images/tokens/military/defeat1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 77f8f1e

Please sign in to comment.