Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -545,6 +545,8 @@ settings.graphics = Graphics
|
|||||||
settings.cleardata = Clear Game Data...
|
settings.cleardata = Clear Game Data...
|
||||||
settings.clear.confirm = Are you sure you want to clear this data?\nWhat is done cannot be undone!
|
settings.clear.confirm = Are you sure you want to clear this data?\nWhat is done cannot be undone!
|
||||||
settings.clearall.confirm = [scarlet]WARNING![]\nThis will clear all data, including saves, maps, unlocks and keybinds.\nOnce you press 'ok' the game will wipe all data and automatically exit.
|
settings.clearall.confirm = [scarlet]WARNING![]\nThis will clear all data, including saves, maps, unlocks and keybinds.\nOnce you press 'ok' the game will wipe all data and automatically exit.
|
||||||
|
settings.clearsaves.confirm = Are you sure you want to clear all saves?
|
||||||
|
settings.clearsaves = Clear all saves
|
||||||
paused = [accent]< Paused >
|
paused = [accent]< Paused >
|
||||||
clear = Clear
|
clear = Clear
|
||||||
banned = [scarlet]Banned
|
banned = [scarlet]Banned
|
||||||
|
|||||||
@@ -539,6 +539,8 @@ settings.graphics = Графика
|
|||||||
settings.cleardata = Очистить игровые данные…
|
settings.cleardata = Очистить игровые данные…
|
||||||
settings.clear.confirm = Вы действительно хотите очистить свои данные?\nЭто нельзя отменить!
|
settings.clear.confirm = Вы действительно хотите очистить свои данные?\nЭто нельзя отменить!
|
||||||
settings.clearall.confirm = [scarlet]ОСТОРОЖНО![]\nЭто сотрёт все данные, включая сохранения, карты, прогресс кампании и настройки управления.\nПосле того как вы нажмёте [accent][ОК][], игра уничтожит все данные и автоматически закроется.
|
settings.clearall.confirm = [scarlet]ОСТОРОЖНО![]\nЭто сотрёт все данные, включая сохранения, карты, прогресс кампании и настройки управления.\nПосле того как вы нажмёте [accent][ОК][], игра уничтожит все данные и автоматически закроется.
|
||||||
|
settings.clearsaves.confirm = Вы уверены, что хотите удалить все сохранения?
|
||||||
|
settings.clearsaves = Удалить все сохранения
|
||||||
paused = [accent]< Пауза >
|
paused = [accent]< Пауза >
|
||||||
clear = Очистить
|
clear = Очистить
|
||||||
banned = [scarlet]Запрещено
|
banned = [scarlet]Запрещено
|
||||||
|
|||||||
@@ -164,6 +164,13 @@ public class Saves{
|
|||||||
return saves;
|
return saves;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void deleteAll(){
|
||||||
|
saves.clear();
|
||||||
|
for(Fi file : saveDirectory.list()){
|
||||||
|
file.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public class SaveSlot{
|
public class SaveSlot{
|
||||||
public final Fi file;
|
public final Fi file;
|
||||||
boolean requestedPreview;
|
boolean requestedPreview;
|
||||||
|
|||||||
@@ -108,6 +108,14 @@ public class SettingsMenuDialog extends SettingsDialog{
|
|||||||
|
|
||||||
t.row();
|
t.row();
|
||||||
|
|
||||||
|
t.button("$settings.clearsaves", Icon.trash, style, () -> {
|
||||||
|
ui.showConfirm("$confirm", "$settings.clearsaves.confirm", () -> {
|
||||||
|
control.saves.deleteAll();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
t.row();
|
||||||
|
|
||||||
t.button("$data.export", Icon.upload, style, () -> {
|
t.button("$data.export", Icon.upload, style, () -> {
|
||||||
if(ios){
|
if(ios){
|
||||||
Fi file = Core.files.local("mindustry-data-export.zip");
|
Fi file = Core.files.local("mindustry-data-export.zip");
|
||||||
|
|||||||
Reference in New Issue
Block a user