-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style added to exported JSON after it's referenced #64
Comments
I'll have to investigate more thoroughly later, but I imagine the default vis skin creates some colors inline or something to that effect. Skin Composer does not play well with Skins made this way. Import only works well with Skins created by Skin Composer. If there is a demand, I'll create an importable version of the default Vis skin. I won't be able to that until after the next major feature update. |
Hmm, I hit a similar issue when I was trying to fill in additional classes to one of the skins I downloaded off the gallery. Here's my reproduction process. in Skin Composer.
I'm seeing that in both the scmp and the JSON file the classes are added in the order they were created. This causes the style not to be found when loading. Manually reordering the scmp seems to fix things persistently. |
I also have the same problem importing then exporting the skin on https://ray3k.wordpress.com/neutralizer-ui-skin-for-visui |
The order that the classes are listed is important. I'll look into it and also, someday, add support to reordering the styles from within the editor. Thanks. |
Thanks for the clarification! |
@raeleus is an importable version of the default vis skin already available somewhere? I'm also struggling with this issue. |
Not yet, I've been tied up with a lot of different projects. I feel like I should just release my current version of Skin Composer before delaying any further. Sorry! |
No worries ! ;-) Removed VisUI and using the stock skin files to start from |
I'm getting an error when I try to serialize a skin exported from skin composer. I'm able to trivially manually fix the JSON by reordering a style to appear before it's referenced. I'm guessing there's some issue with the field names/types between versions of VisUI, but it's still weird that this issue presents this way.
I created a new project by importing the skin packaged with VisUI 1.3.0 . See these files
basic.zip
This gave the warnings:
and when I export the project I get the warnings:
When I try to load the exported skin in the AssetManager in libGDX I get the error:
I can get rid of the error by moving this block of JSON:
to line 548 (right before the list style is reference in
com.kotcrab.vis.ui.widget.ListViewStyle
)Here's the skin composer project I'm working with:
custom.zip
The text was updated successfully, but these errors were encountered: