footerGrid.setColumns(2);
footerGrid.addWidget(new UIButton("reset", "Restore Defaults"));
footerGrid.addWidget(new UIButton("close", "Back"));
footerGrid.setHorizontalSpacing(8);
RelativeLayout layout = new RelativeLayout();
layout.addWidget(new UIImage("title", Assets.getTexture("engine:terasology")),
HorizontalHint.create().fixedWidth(512).center(),
VerticalHint.create().fixedHeight(128).alignTop(48));
layout.addWidget(new UILabel("subtitle", "title", "Input Settings"),
HorizontalHint.create().center(),
VerticalHint.create().fixedHeight(48).alignTopRelativeTo("title", VerticalAlign.BOTTOM));
layout.addWidget(area,
HorizontalHint.create().fixedWidth(640).center(),
VerticalHint.create().alignTopRelativeTo("subtitle", VerticalAlign.BOTTOM).alignBottomRelativeTo("footer", VerticalAlign.TOP, 48));
layout.addWidget(footerGrid,
HorizontalHint.create().center().fixedWidth(400),
VerticalHint.create().fixedHeight(48).alignBottom(48));
setContents(layout);
}