Select and drag multiple entries. Close #74

This commit is contained in:
2022-06-27 21:57:10 +00:00
parent 5175622374
commit 4724d100cf
4 changed files with 53 additions and 15 deletions

View File

@@ -16,7 +16,7 @@
(withWritableComponents archive e [positions Positions]
(when !(positions.exists positionKey)
(dictSet positions positionKey (object x 0.0 y 0.0 z 0.0))))
(let [sprite (new EntrySprite positionKey archive e controller)]
(let [sprite (new EntrySprite this positionKey archive e controller)]
(playState.entryGroup.add sprite)
(dictSet sprites e.id sprite))))
@@ -27,4 +27,7 @@
(sprites.remove e.id)
// When an Entry is hidden, we can bet the user doesn't want it selected anymore
(controller.DeSelectEntry e)
}))
}))
(method getSelectedSprites []
(filter (for e (controller.getSelectedEntries) (dictGet sprites e.id))))