Resolved #2040 - Moved the turn counter on the top bar to the second level, to even out both levels

This commit is contained in:
Yair Morgenstern 2020-03-05 23:29:42 +02:00
parent 8ab7f7ae50
commit 5117a498f9

View File

@ -57,6 +57,7 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
private fun getResourceTable(): Table {
val resourceTable = Table()
resourceTable.defaults().pad(5f)
resourceTable.add(turnsLabel).padRight(20f)
val revealedStrategicResources = worldScreen.gameInfo.ruleSet.tileResources.values
.filter { it.resourceType == ResourceType.Strategic } // && currentPlayerCivInfo.tech.isResearched(it.revealedBy!!) }
for (resource in revealedStrategicResources) {
@ -74,7 +75,6 @@ class WorldScreenTopBar(val worldScreen: WorldScreen) : Table() {
private fun getStatsTable(): Table {
val statsTable = Table()
statsTable.defaults().pad(3f)//.align(Align.top)
statsTable.add(turnsLabel).padRight(20f)
statsTable.add(goldLabel)
statsTable.add(ImageGetter.getStatIcon("Gold")).padRight(20f).size(20f)
statsTable.add(scienceLabel) //.apply { setAlignment(Align.center) }).align(Align.top)