From 60f1859fdc05adecc5433e1447fe004ba3bc1cd9 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 3 Jun 2019 22:17:23 +0300 Subject: [PATCH] Can now select all tile types n map editor, even on smaller resolutions --- core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt b/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt index 43226ddf8e..96e2fc3771 100644 --- a/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt +++ b/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt @@ -99,7 +99,7 @@ class TileEditorOptionsTable(mapEditorScreen: MapEditorScreen): Table(){ val baseTerrainTable = Table().apply { defaults().pad(20f) } for(baseTerrain in baseTerrains) baseTerrainTable.add(baseTerrain).row() baseTerrainTable.pack() - add(baseTerrainTable) + add(ScrollPane(baseTerrainTable).apply { setScrollingDisabled(true,false) }).height(mapEditorScreen.stage.height*0.7f) val terrainFeaturesTable = Table().apply { defaults().pad(20f) } for(terrainFeature in terrainFeatures) terrainFeaturesTable.add(terrainFeature).row() @@ -109,10 +109,10 @@ class TileEditorOptionsTable(mapEditorScreen: MapEditorScreen): Table(){ val resourcesTable = Table() for(resource in resources) resourcesTable.add(resource).row() resourcesTable.pack() - add(ScrollPane(resourcesTable)).height(mapEditorScreen.stage.height/2).row() + add(ScrollPane(resourcesTable).apply { setScrollingDisabled(true,false) }).height(mapEditorScreen.stage.height*0.7f).row() - height=mapEditorScreen.stage.height pack() + height=mapEditorScreen.stage.height // needs to be after pack obvs setPosition(mapEditorScreen.stage.width - width, 0f) }