Denounce now has a confirmation popup
This commit is contained in:
parent
3b2e813523
commit
889d6a1587
2 changed files with 5 additions and 2 deletions
|
@ -72,6 +72,7 @@ We have encountered the City-State of [name]! =
|
|||
Declare Friendship ([numberOfTurns] turns) =
|
||||
May our nations forever remain united! =
|
||||
Indeed! =
|
||||
Denounce [civName]? =
|
||||
Denounce ([numberOfTurns] turns) =
|
||||
We will remember this. =
|
||||
|
||||
|
|
|
@ -251,8 +251,10 @@ class DiplomacyScreen(val viewingCiv:CivilizationInfo):CameraStageBaseScreen() {
|
|||
&& !diplomacyManager.hasFlag(DiplomacyFlags.DeclarationOfFriendship)) {
|
||||
val denounceButton = "Denounce ([30] turns)".toTextButton()
|
||||
denounceButton.onClick {
|
||||
diplomacyManager.denounce()
|
||||
setRightSideFlavorText(otherCiv, "We will remember this.", "Very well.")
|
||||
YesNoPopup("Denounce [${otherCiv.civName}]?", {
|
||||
diplomacyManager.denounce()
|
||||
setRightSideFlavorText(otherCiv, "We will remember this.", "Very well.")
|
||||
}, this).open()
|
||||
}
|
||||
diplomacyTable.add(denounceButton).row()
|
||||
if (isNotPlayersTurn()) denounceButton.disable()
|
||||
|
|
Loading…
Reference in a new issue