VisUI - flat design skin-library for scene2d.ui

Any community contributions to libgdx go here! Some may get included in the core API when permission is granted.

Re: VisUI - flat design skin-library for scene2d.ui

Postby TypeOverride » Thu Nov 23, 2017 7:47 pm

raeleus wrote:Did you make sure to add VisUI to your Core project in your build.gradle file?


Yes i did, thats the problem.
TypeOverride
 
Posts: 101
Joined: Fri Apr 05, 2013 1:11 pm

Re: VisUI - flat design skin-library for scene2d.ui

Postby raeleus » Thu Nov 23, 2017 11:27 pm

Play Forward Gunner!
Create skins visually with Skin Composer.
raeleus
 
Posts: 407
Joined: Wed Aug 07, 2013 10:57 pm

Re: VisUI - flat design skin-library for scene2d.ui

Postby TypeOverride » Fri Nov 24, 2017 12:17 am

raeleus wrote:Is this related to your problem: https://stackoverflow.com/questions/286 ... ely-exists

Nope!
TypeOverride
 
Posts: 101
Joined: Fri Apr 05, 2013 1:11 pm

Re: VisUI - flat design skin-library for scene2d.ui

Postby fmmarzoa » Fri Oct 05, 2018 1:18 pm

I was just trying this and found similar problems when building a release signed apk for Android:

com.kotcrab.vis.ui.widget.file.FileUtils: can't find referenced class com.apple.eio.FileManager

Of course I added it to the build.gradle file of the core project, otherwise the desktop module wouldn't work, and it does. Also building a debug apk works fine.
fmmarzoa
 
Posts: 127
Joined: Sat May 12, 2012 9:46 am

Re: VisUI - flat design skin-library for scene2d.ui

Postby fmmarzoa » Fri Oct 05, 2018 2:08 pm

I solved this with a "dontwarn" rule in my proguard rules file.

Now, I'm facing a different problem. The game crashes with VisUI complaining about being loaded twice, but on one hand it does that the first time I tried to load it for sure, and also there's a check set in place to avoid exactly this:

Code: Select all
        if (! VisUI.isLoaded())
            if (DirectedGame.getDeviceResolution() > 480) {
                VisUI.load(VisUI.SkinScale.X2);
            } else
                VisUI.load();


I opened an issue here:
https://github.com/kotcrab/vis-editor/issues/297

Weird enough, this only happens with the signed release apk. If I build a debug apk instead, it seems to work just fine.

I'm only using this to show a dialog because most skins available there don't support characters other than English and to not take the hassle of creating my own skin, but I think it's going to be less hassle in the end to do so.
fmmarzoa
 
Posts: 127
Joined: Sat May 12, 2012 9:46 am

Re: VisUI - flat design skin-library for scene2d.ui

Postby evilentity » Fri Oct 05, 2018 2:16 pm

Do you really think that it will complain about being loaded when its not? It checks if skin is null, which is set only in load(). Perhaps not using braces in nested ifs is biting you in the ass.
Looking for a freelancer? PM me!
evilentity
 
Posts: 4461
Joined: Wed Aug 24, 2011 11:37 am

Previous

Return to Libgdx Contributions

Who is online

Users browsing this forum: No registered users and 1 guest