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\")"
[path & options]
`(u/calls! ^Skin (Skin. (if (string? ~path)
(.internal ^Files (Gdx/files) ~path)
~path))
`(u/calls! ^Skin (or (u/load-asset ~path Skin)
(Skin. (if (string? ~path)
(.internal ^Files (Gdx/files) ~path)
~path)))
~@options))
(defmacro skin!