From 8965588d9899ae868a8c8c61a262253011a89cc4 Mon Sep 17 00:00:00 2001 From: oakes Date: Sun, 10 Aug 2014 17:10:55 -0400 Subject: [PATCH] Use asset manager in image constructor --- src/play_clj/ui.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/play_clj/ui.clj b/src/play_clj/ui.clj index ead9a64..83934df 100644 --- a/src/play_clj/ui.clj +++ b/src/play_clj/ui.clj @@ -292,7 +292,8 @@ based on the file at `path`. (map? arg) (Image. ^TextureRegion (:object arg)) (string? arg) - (Image. (Texture. ^String arg)) + (Image. (or (u/load-asset arg Texture) + (Texture. ^String arg))) :else (Image. arg))))