mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
World Click events
let's hope it works w/o tests as I can't get to the Ingame now
This commit is contained in:
@@ -57,7 +57,7 @@ abstract class UICanvas(
|
||||
val relativeMouseY: Int
|
||||
get() = Terrarum.mouseScreenY - handler.posY
|
||||
|
||||
/** If mouse is hovering over it */
|
||||
/** If mouse is hovering over it regardless of its visibility */
|
||||
val mouseUp: Boolean
|
||||
get() = relativeMouseX in 0..width - 1 && relativeMouseY in 0..height - 1
|
||||
/** If mouse is hovering over it and mouse is down */
|
||||
|
||||
Reference in New Issue
Block a user