Archive.filePath
This commit is contained in:
@@ -74,3 +74,6 @@
|
|||||||
id (Uuid.v4)
|
id (Uuid.v4)
|
||||||
components (new Map)
|
components (new Map)
|
||||||
files []))
|
files []))
|
||||||
|
|
||||||
|
(method filePath [file]
|
||||||
|
(joinPath archiveDir "files" file))
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
(cond
|
(cond
|
||||||
((hasComponent e Images2)
|
((hasComponent e Images2)
|
||||||
(let [images (readComponent e Images2)]
|
(let [images (readComponent e Images2)]
|
||||||
(.onComplete (BitmapData.loadFromFile (joinPath archive.archiveDir "files" (nth images.imageFiles images.pinnedImageIndex)))
|
(.onComplete (BitmapData.loadFromFile (archive.filePath (nth images.imageFiles images.pinnedImageIndex)))
|
||||||
->bitmapData {
|
->bitmapData {
|
||||||
(loadGraphic bitmapData)
|
(loadGraphic bitmapData)
|
||||||
})))
|
})))
|
||||||
|
|||||||
Reference in New Issue
Block a user