Remove archive argument from readComponent

This commit is contained in:
2021-09-30 15:03:30 -06:00
parent 602d7501da
commit 4804b121d0
4 changed files with 10 additions and 11 deletions

View File

@@ -6,8 +6,8 @@
&prop :ArchiveController controller]
[&mut :Bool selected false]
(let [images (readComponent archive e Images)]
(case (dictGet (readComponent archive e Positions) positionKey)
(let [images (readComponent e Images)]
(case (dictGet (readComponent e Positions) positionKey)
((object x x y y z z)
(super x y)))
(.onComplete (BitmapData.loadFromFile (joinPath archive.archiveDir "files" (nth images.imageFiles images.pinnedImageIndex)))
@@ -15,7 +15,7 @@
(loadGraphic bitmapData)
(updateColor)
(when (hasComponent e Scale)
(let [:Float scale (readComponent archive e Scale)]
(let [:Float scale (readComponent e Scale)]
(this.scale.set scale scale)
(updateHitbox)))
(enableMouseClicks false)