Search in sources :

Example 1 with GraphDrawer

use of space.earlygrey.shapedrawer.GraphDrawer in project skin-composer by raeleus.

the class Main method create.

@Override
public void create() {
    appFolder = Gdx.files.external(".skincomposer/");
    skin = new FreeTypeSkin(Gdx.files.internal("skin-composer-ui/skin-composer-ui.json"));
    viewport = new ScreenViewport();
    // viewport.setUnitsPerPixel(.5f);
    stage = new Stage(viewport);
    Gdx.input.setInputProcessor(stage);
    shapeDrawer = new ShapeDrawer(stage.getBatch(), skin.getRegion("white"));
    graphDrawer = new GraphDrawer(shapeDrawer);
    initDefaults();
    populate();
    resizeUiScale(projectData.getUiScale());
}
Also used : ShapeDrawer(space.earlygrey.shapedrawer.ShapeDrawer) GraphDrawer(space.earlygrey.shapedrawer.GraphDrawer) Stage(com.badlogic.gdx.scenes.scene2d.Stage) ScreenViewport(com.badlogic.gdx.utils.viewport.ScreenViewport) FreeTypeSkin(com.ray3k.stripe.FreeTypeSkin)

Aggregations

Stage (com.badlogic.gdx.scenes.scene2d.Stage)1 ScreenViewport (com.badlogic.gdx.utils.viewport.ScreenViewport)1 FreeTypeSkin (com.ray3k.stripe.FreeTypeSkin)1 GraphDrawer (space.earlygrey.shapedrawer.GraphDrawer)1 ShapeDrawer (space.earlygrey.shapedrawer.ShapeDrawer)1