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))))