Mod management screen scrolls lists separately

This commit is contained in:
Yair Morgenstern 2020-09-07 22:38:05 +03:00
parent 6d4c1cb347
commit 4fa77ac20b
2 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,7 @@ object UnitAutomation {
return true
}
// Nothing immediate, let's look further. Number increases exponentially with distance - at 10 this took a looong time
// Nothing immediate, lets look further. Number increases exponentially with distance - at 10 this took a looong time
for (tile in unit.currentTile.getTilesInDistance(5))
if (isGoodTileToExplore(unit, tile)) {
unit.movement.headTowards(tile)

View File

@ -1,6 +1,7 @@
package com.unciv.ui.pickerscreens
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
import com.badlogic.gdx.scenes.scene2d.ui.Table
import com.badlogic.gdx.scenes.scene2d.ui.TextArea
import com.badlogic.gdx.scenes.scene2d.ui.TextButton
@ -21,7 +22,7 @@ class ModManagementScreen: PickerScreen() {
setDefaultCloseAction(MainMenuScreen())
refresh()
topTable.add(modTable).pad(10f)
topTable.add(ScrollPane(modTable)).height(topTable.height).pad(10f)
downloadTable.add(getDownloadButton()).row()
@ -59,7 +60,7 @@ class ModManagementScreen: PickerScreen() {
}
}
topTable.add(downloadTable)
topTable.add(ScrollPane(downloadTable)).height(topTable.height)
}
fun getDownloadButton(): TextButton {