diff --git a/src/play_clj/ui.clj b/src/play_clj/ui.clj index 3151e5e..6ba44ef 100644 --- a/src/play_clj/ui.clj +++ b/src/play_clj/ui.clj @@ -39,7 +39,10 @@ based on the file at `path`. (skin \"uiskin.json\")" [path & options] - `(u/calls! ^Skin (Skin. (.internal ^Files (Gdx/files) ~path)) ~@options)) + `(u/calls! ^Skin (Skin. (if (string? ~path) + (.internal ^Files (Gdx/files) ~path) + ~path)) + ~@options)) (defmacro align "Returns a static field from [Align](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/Align.html).