mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
fix: smelter: clicking on the slot will reset the scroll now
This commit is contained in:
@@ -197,6 +197,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
|||||||
clickedOn = 1
|
clickedOn = 1
|
||||||
self.forceHighlighted = true
|
self.forceHighlighted = true
|
||||||
fireboxItemSlot.forceHighlighted = false
|
fireboxItemSlot.forceHighlighted = false
|
||||||
|
playerThings.itemList.itemPage = 0
|
||||||
itemListUpdate { ItemCodex.hasTag(it.itm, "SMELTABLE") }
|
itemListUpdate { ItemCodex.hasTag(it.itm, "SMELTABLE") }
|
||||||
}
|
}
|
||||||
else if (smelter.oreItem != null) {
|
else if (smelter.oreItem != null) {
|
||||||
@@ -255,6 +256,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
|||||||
clickedOn = 2
|
clickedOn = 2
|
||||||
self.forceHighlighted = true
|
self.forceHighlighted = true
|
||||||
oreItemSlot.forceHighlighted = false
|
oreItemSlot.forceHighlighted = false
|
||||||
|
playerThings.itemList.itemPage = 0
|
||||||
itemListUpdate { ItemCodex.hasTag(it.itm, "COMBUSTIBLE") }
|
itemListUpdate { ItemCodex.hasTag(it.itm, "COMBUSTIBLE") }
|
||||||
}
|
}
|
||||||
else if (smelter.fireboxItem != null) {
|
else if (smelter.fireboxItem != null) {
|
||||||
@@ -312,6 +314,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
|||||||
clickedOn = 0
|
clickedOn = 0
|
||||||
oreItemSlot.forceHighlighted = false
|
oreItemSlot.forceHighlighted = false
|
||||||
fireboxItemSlot.forceHighlighted = false
|
fireboxItemSlot.forceHighlighted = false
|
||||||
|
playerThings.itemList.itemPage = 0
|
||||||
itemListUpdate()
|
itemListUpdate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user