Search in sources :

Example 1 with Skin

use of io.anuke.ucore.scene.Skin in project Mindustry by Anuken.

the class UI method loadSkin.

@Override
protected void loadSkin() {
    skin = new Skin(Gdx.files.internal("ui/uiskin.json"), Core.atlas);
    Mathf.each(font -> {
        font.setUseIntegerPositions(false);
        font.getData().setScale(Vars.fontscale);
        font.getData().down += Unit.dp.scl(4f);
        font.getData().lineHeight -= Unit.dp.scl(2f);
    }, skin.font(), skin.getFont("default-font-chat"), skin.getFont("korean"));
}
Also used : Skin(io.anuke.ucore.scene.Skin)

Aggregations

Skin (io.anuke.ucore.scene.Skin)1