Close #128: ArchiveUI defines cursorPosition() which is used to place entries

This commit is contained in:
2022-09-28 23:05:12 +00:00
parent 36e888723f
commit 9ab0c3d671
7 changed files with 28 additions and 7 deletions

View File

@@ -330,4 +330,8 @@
(method :Void onSelectionChanged [:Array<Entry> selectedEntries :Array<Entry> lastSelectedEntries]
(doFor e (selectedEntries.concat lastSelectedEntries)
(whenLet [sprite (dictGet spriteSystem.sprites e.id)]
(sprite.updateColor))))
(sprite.updateColor))))
(method :Option<Position> cursorPosition []
(let [pos (FlxG.mouse.getWorldPosition FlxG.camera)]
(Some (object x pos.x y pos.y z 0.0))))