Skip to content
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

Dynamic Skin #148

Open
delahee opened this issue Jul 1, 2014 · 2 comments
Open

Dynamic Skin #148

delahee opened this issue Jul 1, 2014 · 2 comments

Comments

@delahee
Copy link

delahee commented Jul 1, 2014

I am discovering the lib and I am already very happy with it.

I feel like there is no "runtime " way to change the skin definitions, can you add a RtXml.regSkin, please ( or have i missed something) ?

(we need for our next productions)

I think I can do it myself but I 'd like to gain more knowledge before that :)

Thx

@RealyUniqueName
Copy link
Owner

All you need to do is

UIbuilder.skins.set('skinName', function() {
    var skin = new Paint();
    skin.color = 0xFF0000;
    return skin;
});

@delahee
Copy link
Author

delahee commented Jul 1, 2014

Yep, I know, I just thought a unified api for "dynamic xml" loading would be nice :)
I'll go with this solution in the mean time but I am pretty sure i'll hack some file solution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants