mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 15:29:32 +07:00
Fixed mod management screen to the new 'wrapped scrollpanne' style of PickerScreen
This commit is contained in:
@ -38,19 +38,20 @@ class ModManagementScreen: PickerScreen() {
|
|||||||
setDefaultCloseAction(MainMenuScreen())
|
setDefaultCloseAction(MainMenuScreen())
|
||||||
refreshModTable()
|
refreshModTable()
|
||||||
|
|
||||||
topTable.add("Current mods".toLabel()).padRight(35f)
|
topTable.add("Current mods".toLabel()).padRight(35f) // 35 = 10 default pad + 25 to compensate for permanent visual mod decoration icon
|
||||||
// 35 = 10 default pad + 25 to compensate for permanent visual mod decoration icon
|
|
||||||
topTable.add("Downloadable mods".toLabel())
|
topTable.add("Downloadable mods".toLabel())
|
||||||
// topTable.add("Mod actions")
|
// topTable.add("Mod actions")
|
||||||
topTable.row()
|
topTable.row()
|
||||||
|
|
||||||
|
|
||||||
|
// All picker screens auto-wrap the top table in a scrollpane.
|
||||||
|
// Since we want the different parts to scroll separately, we disable the default scrollpane, which would scroll everything at once.
|
||||||
|
scrollPane.setScrollingDisabled(true, true)
|
||||||
|
|
||||||
topTable.add(ScrollPane(modTable)).pad(10f)
|
topTable.add(ScrollPane(modTable)).pad(10f)
|
||||||
|
|
||||||
downloadTable.add(getDownloadButton()).row()
|
downloadTable.add(getDownloadButton()).row()
|
||||||
|
|
||||||
tryDownloadPage(1)
|
tryDownloadPage(1)
|
||||||
|
|
||||||
topTable.add(ScrollPane(downloadTable))
|
topTable.add(ScrollPane(downloadTable))
|
||||||
|
|
||||||
topTable.add(modActionTable)
|
topTable.add(modActionTable)
|
||||||
|
Reference in New Issue
Block a user