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();
}
Aggregations