mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 02:40:41 +07:00
Mark defeated civs in diplomacy screen.
This commit is contained in:
@ -294,11 +294,13 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
|
|
||||||
val label = Label(civ.civName.tr(), CameraStageBaseScreen.skin)
|
val label = Label(civ.civName.tr(), CameraStageBaseScreen.skin)
|
||||||
|
|
||||||
if(playerKnows(civ)) {
|
if (civ.isDefeated()) {
|
||||||
|
civGroup.background = civGroupBackground.tint(Color.LIGHT_GRAY)
|
||||||
|
label.setText(civ.civName + "(Fallen)")
|
||||||
|
} else if (playerKnows(civ)) {
|
||||||
civGroup.background = civGroupBackground.tint(civ.getNation().getColor())
|
civGroup.background = civGroupBackground.tint(civ.getNation().getColor())
|
||||||
label.setFontColor(civ.getNation().getSecondaryColor())
|
label.setFontColor(civ.getNation().getSecondaryColor())
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
civGroup.background = civGroupBackground.tint(Color.DARK_GRAY)
|
civGroup.background = civGroupBackground.tint(Color.DARK_GRAY)
|
||||||
label.setText("???")
|
label.setText("???")
|
||||||
}
|
}
|
||||||
@ -315,8 +317,8 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for(civ in relevantCivs.filter { playerKnows(it) })
|
for(civ in relevantCivs.filter { playerKnows(it) && !it.isDefeated() })
|
||||||
for(diplomacy in civ.diplomacy.values.filter { !it.otherCiv().isBarbarianCivilization() && playerKnows(it.otherCiv()) }){
|
for(diplomacy in civ.diplomacy.values.filter { !it.otherCiv().isBarbarianCivilization() && playerKnows(it.otherCiv()) && !it.otherCiv().isDefeated()}){
|
||||||
val civGroup = civGroups[civ]!!
|
val civGroup = civGroups[civ]!!
|
||||||
val otherCivGroup = civGroups[diplomacy.otherCiv()]!!
|
val otherCivGroup = civGroups[diplomacy.otherCiv()]!!
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user