mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +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())
|
||||
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)
|
||||
|
Reference in New Issue
Block a user