mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Mod management screen scrolls lists separately
This commit is contained in:
parent
6d4c1cb347
commit
4fa77ac20b
@ -37,7 +37,7 @@ object UnitAutomation {
|
|||||||
return true
|
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))
|
for (tile in unit.currentTile.getTilesInDistance(5))
|
||||||
if (isGoodTileToExplore(unit, tile)) {
|
if (isGoodTileToExplore(unit, tile)) {
|
||||||
unit.movement.headTowards(tile)
|
unit.movement.headTowards(tile)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.unciv.ui.pickerscreens
|
package com.unciv.ui.pickerscreens
|
||||||
|
|
||||||
import com.badlogic.gdx.Gdx
|
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.Table
|
||||||
import com.badlogic.gdx.scenes.scene2d.ui.TextArea
|
import com.badlogic.gdx.scenes.scene2d.ui.TextArea
|
||||||
import com.badlogic.gdx.scenes.scene2d.ui.TextButton
|
import com.badlogic.gdx.scenes.scene2d.ui.TextButton
|
||||||
@ -21,7 +22,7 @@ class ModManagementScreen: PickerScreen() {
|
|||||||
setDefaultCloseAction(MainMenuScreen())
|
setDefaultCloseAction(MainMenuScreen())
|
||||||
refresh()
|
refresh()
|
||||||
|
|
||||||
topTable.add(modTable).pad(10f)
|
topTable.add(ScrollPane(modTable)).height(topTable.height).pad(10f)
|
||||||
|
|
||||||
downloadTable.add(getDownloadButton()).row()
|
downloadTable.add(getDownloadButton()).row()
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ class ModManagementScreen: PickerScreen() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
topTable.add(downloadTable)
|
topTable.add(ScrollPane(downloadTable)).height(topTable.height)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getDownloadButton(): TextButton {
|
fun getDownloadButton(): TextButton {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user