mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-18 03:38:55 +07:00
DoF popup requires choosing an option
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user