mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
action listener on textbutton list
This commit is contained in:
@@ -114,8 +114,6 @@ abstract class UIItem(var parentUI: UICanvas) { // do not replace parentUI to UI
|
||||
return false
|
||||
}
|
||||
open fun touchDown(screenX: Int, screenY: Int, pointer: Int, button: Int): Boolean {
|
||||
println("trsaneirsatneioarsteniotrsaneioarstineoarstneio")
|
||||
|
||||
var actionDone = false
|
||||
|
||||
if (touchDownListener != null) {
|
||||
@@ -123,7 +121,9 @@ abstract class UIItem(var parentUI: UICanvas) { // do not replace parentUI to UI
|
||||
actionDone = true
|
||||
}
|
||||
|
||||
if (!clickOnceListenerFired && mouseUp) {
|
||||
if (clickOnceListener != null && !clickOnceListenerFired && mouseUp) {
|
||||
println("arstineotarsneio")
|
||||
|
||||
clickOnceListener!!.invoke(relativeMouseX, relativeMouseY, button)
|
||||
actionDone = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user