From 0aea74d3a95f73239eeacbb49d6e8276a23c5ddb Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Mon, 27 Sep 2021 16:29:47 +0200 Subject: [PATCH] Fix right side of player nation picker no longer entirely clickable (#5338) --- core/src/com/unciv/ui/newgamescreen/PlayerPickerTable.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/newgamescreen/PlayerPickerTable.kt b/core/src/com/unciv/ui/newgamescreen/PlayerPickerTable.kt index 5aa491be38..6210241697 100644 --- a/core/src/com/unciv/ui/newgamescreen/PlayerPickerTable.kt +++ b/core/src/com/unciv/ui/newgamescreen/PlayerPickerTable.kt @@ -323,6 +323,7 @@ private class NationPickerPopup( okButton.setPosition(innerTable.width - buttonsOffsetFromEdge, buttonsOffsetFromEdge, Align.bottomRight) innerTable.addActor(okButton) + nationDetailsTable.touchable = Touchable.enabled nationDetailsTable.onClick { returnSelected() } } @@ -338,7 +339,7 @@ private class NationPickerPopup( } private fun setNationDetails(nation: Nation) { - nationDetailsTable.clear() + nationDetailsTable.clearChildren() // .clear() also clears listeners! nationDetailsTable.add(NationTable(nation, civBlocksWidth, partHeight, ruleset)) selectedNation = nation