mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
storage chest still wip
This commit is contained in:
@@ -65,10 +65,6 @@ abstract class UICanvas(
|
||||
*/
|
||||
val handler = UIHandler(toggleKeyLiteral, toggleButtonLiteral, customPositioning, doNotWarnConstant)
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* In milliseconds
|
||||
*
|
||||
@@ -285,6 +281,9 @@ abstract class UICanvas(
|
||||
|
||||
// end of handler func aliases
|
||||
|
||||
init {
|
||||
if (uiItems.isEmpty()) println("UICanvas '${this.javaClass.name}' has no UIItem registered, just so you know...")
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val OPENCLOSE_GENERIC = 0.2f
|
||||
|
||||
@@ -193,6 +193,8 @@ abstract class UIItem(var parentUI: UICanvas, val initialX: Int, val initialY: I
|
||||
return false
|
||||
}
|
||||
open fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
|
||||
println("uiitem ${this.javaClass.name} touchdown")
|
||||
|
||||
var actionDone = false
|
||||
|
||||
if (parentUI.isVisible) {
|
||||
|
||||
Reference in New Issue
Block a user