@Override
public void init(ADXGame game) {
if (fnt != null) {
fntFormat = new ADXFontFormatter(fnt);
width = (int) ADXMath.max(8 + fntFormat.getMaxWidth(text) + 8, 8 + 64 + 8);
height = 8 + fntFormat.getTotalHeight(text) + 8 + 32 + 8;
}
x = (game.getWidth() - width) / 2;
y = (game.getHeight() - height) / 2;