Skip to content

taluks/libgdx-design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibGDX Design

A visual Scene2D UI editor for LibGDX

Watch the video

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

About

LibGDX UI editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages