Allow skin to take a FileHandle
This commit is contained in:
@@ -39,7 +39,10 @@ based on the file at `path`.
|
|||||||
|
|
||||||
(skin \"uiskin.json\")"
|
(skin \"uiskin.json\")"
|
||||||
[path & options]
|
[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
|
(defmacro align
|
||||||
"Returns a static field from [Align](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/Align.html).
|
"Returns a static field from [Align](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/scenes/scene2d/utils/Align.html).
|
||||||
|
|||||||
Reference in New Issue
Block a user