mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-11 00:07:46 +07:00
Fixed file chooser style / Fixed sector save invisibility
This commit is contained in:
@ -127,6 +127,7 @@ public class Saves{
|
||||
saveMap.put(slot.index, slot);
|
||||
slot.meta = SaveIO.getData(slot.index);
|
||||
current = slot;
|
||||
slot.meta.sector = invalidSector;
|
||||
saveSlots();
|
||||
return slot;
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ public class FileChooser extends FloatingDialog{
|
||||
//macs are confined to the Downloads/ directory
|
||||
if(!OS.isMac){
|
||||
Image upimage = new Image("icon-folder-parent");
|
||||
TextButton upbutton = new TextButton(".." + directory.toString(), "clear");
|
||||
TextButton upbutton = new TextButton(".." + directory.toString(), "clear-toggle");
|
||||
upbutton.clicked(() -> {
|
||||
directory = directory.parent();
|
||||
updateFiles(true);
|
||||
@ -220,7 +220,7 @@ public class FileChooser extends FloatingDialog{
|
||||
|
||||
String filename = file.name();
|
||||
|
||||
TextButton button = new TextButton(shorten(filename), "clear");
|
||||
TextButton button = new TextButton(shorten(filename), "clear-toggle");
|
||||
group.add(button);
|
||||
|
||||
button.clicked(() -> {
|
||||
|
@ -161,6 +161,7 @@ public class LoadDialog extends FloatingDialog{
|
||||
control.saves.importSave(file);
|
||||
setup();
|
||||
}catch(IOException e){
|
||||
e.printStackTrace();
|
||||
ui.showError(Bundles.format("text.save.import.fail", Strings.parseException(e, false)));
|
||||
}
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user