Fixed mod management screen to the new 'wrapped scrollpanne' style of PickerScreen

This commit is contained in:
Yair Morgenstern
2021-04-30 12:34:24 +03:00
parent e9d450eb60
commit 9847d089b3

View File

@ -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)