return this;
}
/** Adds a static label that spans the width of the HUD. */
public void add (String label, final boolean header) {
final TextLayout layout = graphics().layoutText(label, _fmt);
_rows.add(new Row() {
public void update () {} // noop
public float labelWidth () { return 0; }
public float width () { return layout.width(); }
public float height() { return layout.height(); }
public void render (Canvas canvas, float x, float y, float valueX) {
if (header) canvas.drawLine(0, y-1, canvas.width(), y-1);
canvas.fillText(layout, x, y);
float by = y + layout.height();
if (header) canvas.drawLine(0, by, canvas.width(), by);
}
});
}