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