Search in sources :

Example 1 with HighlightedText

use of com.watabou.pixeldungeon.ui.HighlightedText in project pixel-dungeon by watabou.

the class WndChooseWay method createCommonStuff.

private float createCommonStuff(TomeOfMastery tome, String text) {
    IconTitle titlebar = new IconTitle();
    titlebar.icon(new ItemSprite(tome.image(), null));
    titlebar.label(tome.name());
    titlebar.setRect(0, 0, WIDTH, 0);
    add(titlebar);
    HighlightedText hl = new HighlightedText(6);
    hl.text(text, WIDTH);
    hl.setPos(titlebar.left(), titlebar.bottom() + GAP);
    add(hl);
    return hl.bottom();
}
Also used : HighlightedText(com.watabou.pixeldungeon.ui.HighlightedText) ItemSprite(com.watabou.pixeldungeon.sprites.ItemSprite)

Aggregations

ItemSprite (com.watabou.pixeldungeon.sprites.ItemSprite)1 HighlightedText (com.watabou.pixeldungeon.ui.HighlightedText)1