GenericScrollArea screen = new GenericScrollArea();
screen.setHeight(height - 24 - 30).setWidth(width).setY(24).setX(0);
getScreen().attachWidget("Spoutcraft", screen);
GenericLabel label = new GenericLabel("Minimap Settings");
int size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
label.setX((int) (width / 2 - size / 2)).setY(10);
label.setFixed(true).setPriority(RenderPriority.Lowest);
getScreen().attachWidget("Spoutcraft", label);
int left = (int)(width / 2 - 155);
int right = (int)(width / 2 + 5);
control = new ResetButton(this).setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(height - 25);
getScreen().attachWidget("Spoutcraft", control);
doneButton = new GenericButton("Done");
doneButton.setAlign(WidgetAnchor.CENTER_CENTER);
doneButton.setX(right).setY(height - 25);
doneButton.setHeight(20).setWidth(150);
getScreen().attachWidget("Spoutcraft", doneButton);
int top = 5;
final Color grey = new Color(0.80F, 0.80F, 0.80F, 0.65F);
label = new GenericLabel("Minimap Position");
size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
label.setX((int) (width / 2 - size / 2)).setY(top);
label.setTextColor(grey);
screen.attachWidget("Spoutcraft", label);
top += 11;
Gradient linebreak = new GenericGradient();
linebreak.setBottomColor(grey);
linebreak.setTopColor(grey);
linebreak.setX(width/2 - 318 / 2).setY(top).setHeight(3).setWidth(318);
screen.attachWidget("Spoutcraft", linebreak);
top += 6;
positionButton = new GenericButton("Move Minimap");
positionButton.setGeometry(width / 2 - 75, top, 150, 20);
screen.attachWidget("Spoutcraft", positionButton);
top += 27;
label = new GenericLabel("Minimap Configuration");
size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
label.setX((int) (width / 2 - size / 2)).setY(top);
label.setTextColor(grey);
screen.attachWidget("Spoutcraft", label);
top += 11;
linebreak = new GenericGradient();