mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
working inventory clicking ingame
This commit is contained in:
@@ -105,10 +105,11 @@ class UIInventory(
|
||||
override fun update(gc: GameContainer, delta: Int) {
|
||||
catButtons.update(gc, delta)
|
||||
|
||||
|
||||
if (actor != null && inventory != null) {
|
||||
// monitor and check if category selection has been changed
|
||||
if (oldCatSelect != catButtons.selectedIndex) {
|
||||
// OR UI is being opened from closed state
|
||||
if (oldCatSelect != catButtons.selectedIndex ||
|
||||
!rebuildList && handler!!.openFired) {
|
||||
rebuildList = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user