mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
scrollable inventory with up/down UI button
This commit is contained in:
@@ -100,8 +100,8 @@ class UIHandler(//var UI: UICanvas,
|
||||
}
|
||||
|
||||
|
||||
if (openFired && openCloseCounter > 9) openFired = false
|
||||
if (closeFired && openCloseCounter > 9) closeFired = false
|
||||
//if (openFired && openCloseCounter > 9) openFired = false
|
||||
//if (closeFired && openCloseCounter > 9) closeFired = false
|
||||
|
||||
|
||||
if (isVisible) {
|
||||
@@ -109,6 +109,8 @@ class UIHandler(//var UI: UICanvas,
|
||||
}
|
||||
|
||||
if (isOpening) {
|
||||
openFired = false
|
||||
|
||||
isVisible = true
|
||||
openCloseCounter += delta
|
||||
|
||||
@@ -128,6 +130,8 @@ class UIHandler(//var UI: UICanvas,
|
||||
}
|
||||
}
|
||||
else if (isClosing) {
|
||||
closeFired = false
|
||||
|
||||
openCloseCounter += delta
|
||||
|
||||
// println("UI ${UI.javaClass.simpleName} (close)")
|
||||
|
||||
Reference in New Issue
Block a user