mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-19 20:28:56 +07:00
Fix right side of player nation picker no longer entirely clickable (#5338)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user