From 29f17691b78ad947cc1b084f175b7715e381e6b0 Mon Sep 17 00:00:00 2001 From: oakes Date: Wed, 2 Apr 2014 11:49:27 -0400 Subject: [PATCH] Allow skin to take a FileHandle --- src/play_clj/ui.clj | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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).