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())
refreshModTable()
topTable.add("Current mods".toLabel()).padRight(35f)
// 35 = 10 default pad + 25 to compensate for permanent visual mod decoration icon
topTable.add("Current mods".toLabel()).padRight(35f) // 35 = 10 default pad + 25 to compensate for permanent visual mod decoration icon
topTable.add("Downloadable mods".toLabel())
// topTable.add("Mod actions")
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)
downloadTable.add(getDownloadButton()).row()
tryDownloadPage(1)
topTable.add(ScrollPane(downloadTable))
topTable.add(modActionTable)