Tile stats are shown on a row, rather than on a column (#1946)

This commit is contained in:
Federico Luongo 2020-02-26 20:48:25 +01:00 committed by GitHub
parent faa204d86f
commit c4375ed4e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,8 +68,7 @@ class CityScreenTileTable(val city: CityInfo): Table(){
statsTable.defaults().pad(2f)
for (entry in stats.toHashMap().filterNot { it.value == 0f }) {
statsTable.add(ImageGetter.getStatIcon(entry.key.toString())).size(20f)
statsTable.add(entry.value.roundToInt().toString().toLabel())
statsTable.row()
statsTable.add(entry.value.roundToInt().toString().toLabel()).padRight(5f)
}
return statsTable
}