mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:50:08 -04:00
Undiscovered civs aren't revealed in Overview by their icons
Irrelevant Overviews are disabled
This commit is contained in:
parent
7958c795dd
commit
2b3de8b78f
@ -45,7 +45,7 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
setStatsInfoButton.onClick {
|
setStatsInfoButton.onClick {
|
||||||
centerTable.clear()
|
centerTable.clear()
|
||||||
centerTable.add(ScrollPane(HorizontalGroup().apply {
|
centerTable.add(ScrollPane(HorizontalGroup().apply {
|
||||||
space(20f)
|
space(40f)
|
||||||
top()
|
top()
|
||||||
addActor(getHappinessTable())
|
addActor(getHappinessTable())
|
||||||
addActor(getGoldTable())
|
addActor(getGoldTable())
|
||||||
@ -62,6 +62,8 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
centerTable.pack()
|
centerTable.pack()
|
||||||
}
|
}
|
||||||
topTable.add(setCurrentTradesButton)
|
topTable.add(setCurrentTradesButton)
|
||||||
|
if(currentPlayerCivInfo.diplomacy.values.all { it.trades.isEmpty() })
|
||||||
|
setCurrentTradesButton.disable()
|
||||||
|
|
||||||
val setUnitsButton = TextButton("Units".tr(),skin)
|
val setUnitsButton = TextButton("Units".tr(),skin)
|
||||||
setUnitsButton.onClick {
|
setUnitsButton.onClick {
|
||||||
@ -87,6 +89,8 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
centerTable.pack()
|
centerTable.pack()
|
||||||
}
|
}
|
||||||
topTable.add(setResourcesButton)
|
topTable.add(setResourcesButton)
|
||||||
|
if(currentPlayerCivInfo.getDetailedCivResources().isEmpty())
|
||||||
|
setResourcesButton.disable()
|
||||||
|
|
||||||
topTable.pack()
|
topTable.pack()
|
||||||
|
|
||||||
@ -386,10 +390,11 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
label.setAlignment(Align.center)
|
label.setAlignment(Align.center)
|
||||||
|
|
||||||
if (civ.isDefeated()) {
|
if (civ.isDefeated()) {
|
||||||
civGroup.background = civGroupBackground.tint(Color.LIGHT_GRAY)
|
|
||||||
civGroup.add(ImageGetter.getImage("OtherIcons/DisbandUnit")).size(30f)
|
civGroup.add(ImageGetter.getImage("OtherIcons/DisbandUnit")).size(30f)
|
||||||
|
civGroup.background = civGroupBackground.tint(Color.LIGHT_GRAY)
|
||||||
label.setFontColor(Color.BLACK)
|
label.setFontColor(Color.BLACK)
|
||||||
} else if (currentPlayer==civ || currentPlayer.knows(civ)) {
|
} else if (currentPlayer==civ || currentPlayer.knows(civ)) {
|
||||||
|
civGroup.add(ImageGetter.getNationIndicator(civ.getNation(), 30f))
|
||||||
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 {
|
||||||
@ -397,7 +402,6 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
|
|||||||
label.setText("???")
|
label.setText("???")
|
||||||
}
|
}
|
||||||
|
|
||||||
civGroup.add(ImageGetter.getNationIndicator(civ.getNation(), 30f))
|
|
||||||
civGroup.add(label).pad(10f)
|
civGroup.add(label).pad(10f)
|
||||||
civGroup.pack()
|
civGroup.pack()
|
||||||
return civGroup
|
return civGroup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user