if (table.debugRects == null) table.debugRects = new Array();
table.debugRects.add(new DebugRect(type, x, table.getHeight() - y, w, h));
}
static void draw (Stage stage) {
if (app != Gdx.app) debugRenderer = new ImmediateModeRenderer20(128, false, true, 0);
debugRenderer.begin(stage.getBatch().getProjectionMatrix(), GL20.GL_LINES);
draw(stage.getActors());
debugRenderer.end();
}