Resolved #3548 - defeated civs now stack correctly in overview>diplomacy

This commit is contained in:
Yair Morgenstern 2021-01-18 21:20:47 +02:00
parent 2d1113fc5a
commit 3b3be47ddb

View File

@ -158,7 +158,7 @@ class EmpireOverviewScreen(private var viewingPlayer:CivilizationInfo, defaultPa
civTable.addSeparator() civTable.addSeparator()
playerKnowsAndDefeatedCivs.forEach { playerKnowsAndDefeatedCivs.forEach {
civTable.add(getCivMinitable(it)).left() civTable.add(getCivMinitable(it)).left()
if (playerKnowsAndUndefeatedCivs.indexOf(it) % 2 == 0) civTable.row() if (playerKnowsAndDefeatedCivs.indexOf(it) % 2 == 0) civTable.row()
} }
} }
val civTableScrollPane = ScrollPane(civTable) val civTableScrollPane = ScrollPane(civTable)