Load skin with asset manager

This commit is contained in:
oakes
2014-09-23 15:54:59 -04:00
parent 6d184d8b98
commit 7a83c3bf9f

View File

@@ -41,9 +41,10 @@ based on the file at `path`.
(skin \"uiskin.json\")" (skin \"uiskin.json\")"
[path & options] [path & options]
`(u/calls! ^Skin (Skin. (if (string? ~path) `(u/calls! ^Skin (or (u/load-asset ~path Skin)
(.internal ^Files (Gdx/files) ~path) (Skin. (if (string? ~path)
~path)) (.internal ^Files (Gdx/files) ~path)
~path)))
~@options)) ~@options))
(defmacro skin! (defmacro skin!