DoF popup requires choosing an option

This commit is contained in:
yairm210
2024-10-31 07:17:36 +02:00
parent 096c4cf140
commit cf93f81956

View File

@ -214,10 +214,10 @@ class AlertPopup(
val playerDiploManager = viewingCiv.getDiplomacyManager(otherciv)!!
addLeaderName(otherciv)
addGoodSizedLabel("My friend, shall we declare our friendship to the world?").row()
addCloseButton("We are not interested.", KeyboardBinding.Cancel) {
addButton("We are not interested.", KeyboardBinding.Cancel) {
playerDiploManager.otherCivDiplomacy().setFlag(DiplomacyFlags.DeclinedDeclarationOfFriendship, 20)
}.row()
addCloseButton("Declare Friendship ([30] turns)", KeyboardBinding.Confirm) {
addButton("Declare Friendship ([30] turns)", KeyboardBinding.Confirm) {
playerDiploManager.signDeclarationOfFriendship()
}
}
@ -242,6 +242,7 @@ class AlertPopup(
addCloseButton("We shall do as we please.", KeyboardBinding.Cancel) {
playerDiploManager.refuseDemandNotToSettleNear()
}
}
private fun addDemandToStopSpreadingReligion() {