Search in sources :

Example 1 with Visual

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

the class GameLog method layout.

@Override
protected void layout() {
    float pos = y;
    for (int i = getLength() - 1; i >= 0; i--) {
        Visual entry = (Visual) members.get(i);
        if (entry instanceof Text) {
            entry.x = x;
            entry.y = pos - entry.height();
            pos = entry.y;
        }
    }
}
Also used : Text(com.watabou.noosa.Text) Visual(com.watabou.noosa.Visual)

Aggregations

Text (com.watabou.noosa.Text)1 Visual (com.watabou.noosa.Visual)1