mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
uicrafting: reset scroll when opening
This commit is contained in:
@@ -356,6 +356,7 @@ class UICrafting(val full: UIInventoryFull?) : UICanvas(
|
||||
fun resetUI() {
|
||||
// reset spinner
|
||||
resetSpinner()
|
||||
|
||||
// reset selected recipe status
|
||||
recipeClicked = null
|
||||
filterPlayerListUsing(recipeClicked)
|
||||
@@ -364,6 +365,10 @@ class UICrafting(val full: UIInventoryFull?) : UICanvas(
|
||||
playerThings.removeFromForceHighlightList(oldSelectedItems)
|
||||
itemListIngredients.rebuild(FILTER_CAT_ALL)
|
||||
|
||||
// reset scroll
|
||||
itemListCraftable.itemPage = 0
|
||||
playerThings.itemList.itemPage = 0
|
||||
|
||||
refreshCraftButtonStatus()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user