Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun d(e : MouseEvent) {
- val m = w.sceneToLocal( e.sceneX, e.sceneY )
- val tN = e.target as Node
- val tT = tN.findParentOfType(Tile::class)
- if (::i.isInitialized && dnd) {
- if (tT is Tile && w.contains(mousePt) &&
- i.t.toIntOrNull() == null) {
- p(m.x, m.y)
- root.children[1].getChildList()!!.remove(iT)
- t.w = 100.0
- t.h = 100.0
- dnd = false
- }
- }
- e.consume()
- }
Add Comment
Please, Sign In to add comment