Search in sources :

Example 1 with SystemText

use of com.watabou.noosa.SystemText in project pixel-dungeon-remix by NYRDS.

the class PixelScene method createMultiline.

public static Text createMultiline(final String text, float size) {
    if (!ModdingMode.getClassicTextRenderingMode()) {
        return new SystemText(text, size, true);
    }
    Text result = Text.createMultiline(text, chooseFont(size));
    result.Scale().set(scale);
    return result;
}
Also used : Text(com.watabou.noosa.Text) SystemText(com.watabou.noosa.SystemText) SystemText(com.watabou.noosa.SystemText)

Example 2 with SystemText

use of com.watabou.noosa.SystemText in project pixel-dungeon-remix by NYRDS.

the class SystemRedButton method createChildren.

@Override
protected void createChildren() {
    super.createChildren();
    bg = Chrome.get(Chrome.Type.BUTTON);
    add(bg);
    text = new SystemText(GuiProperties.titleFontSize());
    add(text);
}
Also used : SystemText(com.watabou.noosa.SystemText)

Example 3 with SystemText

use of com.watabou.noosa.SystemText in project pixel-dungeon-remix by NYRDS.

the class PixelScene method createText.

public static Text createText(String text, float size) {
    if (!ModdingMode.getClassicTextRenderingMode()) {
        return new SystemText(text, size, false);
    }
    Text result = Text.create(text, chooseFont(size));
    result.Scale().set(scale);
    return result;
}
Also used : Text(com.watabou.noosa.Text) SystemText(com.watabou.noosa.SystemText) SystemText(com.watabou.noosa.SystemText)

Example 4 with SystemText

use of com.watabou.noosa.SystemText in project pixel-dungeon-remix by NYRDS.

the class ModsButton method createChildren.

@Override
protected void createChildren() {
    super.createChildren();
    image = Icons.MODDING_MODE.get();
    add(image);
    text = new SystemText(GuiProperties.regularFontSize());
    text.text(PixelDungeon.activeMod());
    add(text);
}
Also used : SystemText(com.watabou.noosa.SystemText)

Aggregations

SystemText (com.watabou.noosa.SystemText)4 Text (com.watabou.noosa.Text)2