From cf93f81956efe43643801f4ac5b93ec42b6256e8 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Thu, 31 Oct 2024 07:17:36 +0200 Subject: [PATCH] DoF popup requires choosing an option --- core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt b/core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt index eb5ebf94a6..4f3cd4488f 100644 --- a/core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt +++ b/core/src/com/unciv/ui/screens/worldscreen/AlertPopup.kt @@ -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() {