From effdf74bb6d50842140942751d56da052285146e Mon Sep 17 00:00:00 2001 From: Johannes Schreiber <58529898+devbeutler@users.noreply.github.com> Date: Sat, 6 Feb 2021 18:35:54 +0100 Subject: [PATCH] Scroll indicators are displayed more consistently on the NewGameScreen (#3570) --- core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt index dee2a59926..5e6aec5ddf 100644 --- a/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt +++ b/core/src/com/unciv/ui/newgamescreen/NewGameScreen.kt @@ -52,10 +52,13 @@ class NewGameScreen(previousScreen:CameraStageBaseScreen, _gameSetupInfo: GameSe topTable.add(ScrollPane(newGameOptionsTable, skin).apply { setOverscroll(false, false) }) .maxHeight(topTable.parent.height).width(stage.width / 3).padTop(20f).top() topTable.addSeparatorVertical() - topTable.add(ScrollPane(mapOptionsTable).apply { setOverscroll(false, false) }) + topTable.add(ScrollPane(mapOptionsTable, skin).apply { setOverscroll(false, false) }) .maxHeight(topTable.parent.height).width(stage.width / 3).padTop(20f).top() topTable.addSeparatorVertical() - topTable.add(playerPickerTable).maxHeight(topTable.parent.height).width(stage.width / 3).padTop(20f).top() + topTable.add(ScrollPane(playerPickerTable, skin) + .apply { setOverscroll(false, false) } + .apply { setScrollingDisabled(true, false) }) + .maxHeight(topTable.parent.height).width(stage.width / 3).padTop(20f).top() topTable.pack() topTable.setFillParent(true)