mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 06:24:06 +09:00
uiloadmanage: going back to list will reset the list scroll
This commit is contained in:
@@ -75,6 +75,7 @@ class UILoadManage(val full: UILoadSavegame) : UICanvas() {
|
||||
private val mainBackButton = UIItemTextButton(this,
|
||||
{ Lang["MENU_LABEL_BACK"] }, buttonXcentre, buttonRowY, buttonWidth, alignment = UIItemTextButton.Companion.Alignment.CENTRE, hasBorder = true).also {
|
||||
it.clickOnceListener = { _,_ ->
|
||||
full.resetScroll()
|
||||
full.changePanelTo(0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user