Load skin with asset manager
This commit is contained in:
@@ -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!
|
||||||
|
|||||||
Reference in New Issue
Block a user