A visual Scene2D UI editor for LibGDX
Create any interface using the editor. Add the component module to your project.
AssetManager manager = new AssetManager();
manager.setLoader(UIComponent.class, new UIComponentLoader(manager.getFileHandleResolver()));
manager.load(fileSkinPath, Skin.class);
manager.load(fileUiPath, UIComponent.class);
manager.finishLoading();
Skin skin = manager.get(fileSkin);
UIComponent component = manager.get(fileUiPath);You can download the ui file directly:
new UIComponent().load(fileHandle);Place components on the stage:
ObjectMap<String, Actor> actors = component.build(skin);
for (Actor a : actors.values()) {
stage.addActor(a);
}
// Find actor
TextButton btn = ((Window) actors.get("wnd")).findActor("btn");💡 Need ready-made skins to start with? Browse the community collection at
https://github.com/czyzby/gdx-skins
