Fixed zoom/web save export/liquid crafter/menu button scale bugs

This commit is contained in:
Anuken
2018-01-26 14:01:16 -05:00
parent 493af5e653
commit c0a9cfc6b2
12 changed files with 255 additions and 254 deletions

View File

@@ -74,36 +74,25 @@ public class LoadDialog extends FloatingDialog{
});
}).size(14*3).right();
t.addImageButton("icon-dots", "empty", 14*3, () -> {
FloatingDialog dialog = new FloatingDialog("Save Options");
dialog.addCloseButton();
dialog.content().defaults().left().uniformX().size(230f, 60f);
dialog.content().addImageTextButton("$text.save.rename", "icon-rename", 14*3, () -> {
Vars.ui.showTextInput("$text.save.rename", "$text.save.rename.text", slot.getName(), text -> {
slot.setName(text);
dialog.hide();
setup();
});
t.addImageButton("icon-pencil-small", "empty", 14*3, () -> {
Vars.ui.showTextInput("$text.save.rename", "$text.save.rename.text", slot.getName(), text -> {
slot.setName(text);
setup();
});
}).size(14*3).right();
dialog.content().row();
dialog.content().addImageTextButton("$text.save.export", "icon-load", 14*3, () -> {
if(!Vars.gwt) {
t.addImageButton("icon-save", "empty", 14 * 3, () -> {
new FileChooser("$text.save.export", false, file -> {
try{
try {
slot.exportFile(file);
setup();
}catch (IOException e){
} catch (IOException e) {
Vars.ui.showError(Bundles.format("text.save.export.fail", Strings.parseException(e, false)));
}
dialog.hide();
}).show();
});
dialog.show();
}).size(14*3).right();
}).size(14 * 3).right();
}
}).padRight(-10).growX();