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();
linebreak.setBottomColor(grey);
linebreak.setTopColor(grey);
linebreak.setX(width/2 - 318 / 2).setY(top).setHeight(3).setWidth(318);
screen.attachWidget("Spoutcraft", linebreak);
top += 6;
toggleCheckBox = new MinimapToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
toggleCheckBox.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", toggleCheckBox);
control = new ColorToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
control.setEnabled(false);
control.setTooltip("Feature broken.");
top += 22;
control = new CoordsToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
hideable.add(control);
control = new SquareToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
top += 22;
hideable.add(control);
control = new ScaleToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
hideable.add(control);
control = new DirectionsToggleCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
top += 22;
hideable.add(control);
control = new MinimapModeButton().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
control.setEnabled(false);
control.setTooltip("Feature broken.");
control = new ZoomModeButton().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
top += 22;
hideable.add(control);
control = new DeathpointsCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
hideable.add(control);
control = new BackgroundCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
top += 22;
hideable.add(control);
control = new HeightMapCheckBox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
hideable.add(control);
control = new ScanRadiusSlider().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(right).setY(top);
screen.attachWidget("Spoutcraft", control);
top += 22;
hideable.add(control);
control = new ShowEntitiesCheckbox().setAlign(WidgetAnchor.TOP_CENTER);
control.setWidth(150).setHeight(20).setX(left).setY(top);
screen.attachWidget("Spoutcraft", control);
hideable.add(control);
advancedMobsButton = new GenericButton("Filter Mobs").setAlign(WidgetAnchor.TOP_CENTER);
advancedMobsButton.setWidth(150).setHeight(20).setX(right).setY(top);
advancedMobsButton.setTooltip("Select which mobs are shown on the minimap");
screen.attachWidget("Spoutcraft", advancedMobsButton);
hideable.add(advancedMobsButton);