mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Resolved #1157 - Added popup for entering Golden Age
This commit is contained in:
parent
4cde23e7a9
commit
69dd7ec7b6
@ -33,6 +33,7 @@ class GoldenAgeManager{
|
||||
turnsToGoldenAge *= civInfo.gameInfo.gameParameters.gameSpeed.getModifier()
|
||||
turnsLeftForCurrentGoldenAge += turnsToGoldenAge.toInt()
|
||||
civInfo.addNotification("You have entered a golden age!", null, Color.GOLD)
|
||||
civInfo.popupAlerts.add(PopupAlert(AlertType.GoldenAge,""))
|
||||
}
|
||||
|
||||
fun endTurn(happiness: Int) {
|
||||
|
@ -12,6 +12,7 @@ enum class AlertType{
|
||||
CitiesSettledNearOtherCiv,
|
||||
DemandToStopSettlingCitiesNear,
|
||||
CitySettledNearOtherCivDespiteOurPromise,
|
||||
GoldenAge,
|
||||
}
|
||||
|
||||
class PopupAlert {
|
||||
|
@ -139,6 +139,12 @@ class AlertPopup(val worldScreen: WorldScreen, val popupAlert: PopupAlert): Popu
|
||||
add(centerTable).row()
|
||||
add(getCloseButton("Close"))
|
||||
}
|
||||
AlertType.GoldenAge -> {
|
||||
addGoodSizedLabel("GOLDEN AGE")
|
||||
addSeparator()
|
||||
addGoodSizedLabel("Your citizens have been happy with your rule for so long that the empire enters a Golden Age!").row()
|
||||
add(getCloseButton("Close"))
|
||||
}
|
||||
}
|
||||
open()
|
||||
worldScreen.alertPopupIsOpen = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user