if (btn == buttonReset) {
map.reset();
}
if (btn == buttonSave) {
if (map.saveToDesktop()) {
Label label = new FadingLabel("Saved to Desktop!", 500).setTextColor(new Color(0x7FFF00));
label.setGeometry(width / 2 - Spoutcraft.getMinecraftFont().getTextWidth(label.getText()) / 2, height / 2, 100, 12);
getScreen().attachWidgets("Spoutcraft", label);
} else {
Label label = new FadingLabel("Failed to save Minimap!", 500).setTextColor(new Color(0xEE0000));
label.setGeometry(width / 2 - Spoutcraft.getMinecraftFont().getTextWidth(label.getText()) / 2, height / 2, 100, 12);
getScreen().attachWidgets("Spoutcraft", label);
}
}
if (btn == buttonDeathpoints) {
MinimapConfig.getInstance().setDeathpoints(!MinimapConfig.getInstance().isDeathpoints());