mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-27 16:10:55 +07:00
Mod management screen scrolls lists separately
This commit is contained in:
parent
6d4c1cb347
commit
4fa77ac20b
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user