mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 22:12:16 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6d99e40fe4
36 changed files with 46 additions and 3 deletions
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Edit
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Name:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Падрабязнасці...
|
|||
edit = Рэдагаваць...
|
||||
variables = Пераменныя
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Назва:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Детайли...
|
|||
edit = Редактирай...
|
||||
variables = Променливи
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Име:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalls
|
|||
edit = Edita
|
||||
variables = Variables
|
||||
logic.clear.confirm = Esteu segur que voleu esborrar tot el codi d’aquest processador?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nom:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Podrobnosti...
|
|||
edit = Upravit...
|
||||
variables = Hodnoty
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Vestavěné proměnné
|
||||
|
||||
editor.name = Jméno:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detaljer...
|
|||
edit = Rediger...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Navn:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details
|
|||
edit = Bearbeiten
|
||||
variables = Variablen
|
||||
logic.clear.confirm = Willst du wirklich den gesamten Code aus diesem Prozessor löschen?
|
||||
logic.restart = Restart
|
||||
logic.globals = Eingebaute Variablen
|
||||
|
||||
editor.name = Name:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalles...
|
|||
edit = Editar...
|
||||
variables = Variables
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nombre:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Üksikasjad...
|
|||
edit = Muuda...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nimi:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Xehetasunak...
|
|||
edit = Editatu...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Izena:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Yksityiskohdat...
|
|||
edit = Muokkaa...
|
||||
variables = Muuttujat
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nimi:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Edit...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Name:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Détails...
|
|||
edit = Modifier...
|
||||
variables = Variables
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nom :
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Részletek…
|
|||
edit = Szerkesztés
|
||||
variables = Változók
|
||||
logic.clear.confirm = Biztosan törölni akarod az összes kódot ebből a processzorból?
|
||||
logic.restart = Restart
|
||||
logic.globals = Beépített változók
|
||||
|
||||
editor.name = Név:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detail...
|
|||
edit = Sunting
|
||||
variables = Variabel
|
||||
logic.clear.confirm = Apakah Anda yakin ingin menghapus semua kode dari prosesor ini?
|
||||
logic.restart = Restart
|
||||
logic.globals = Variabel Bawaan
|
||||
|
||||
editor.name = Nama:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Dettagli...
|
|||
edit = Modifica...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nome:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = 詳細...
|
|||
edit = 編集...
|
||||
variables = 変数
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = 名前:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = 설명...
|
|||
edit = 편집...
|
||||
variables = 변수
|
||||
logic.clear.confirm = 이 프로세서의 모든 코드를 삭제하시겠습니까?
|
||||
logic.restart = Restart
|
||||
logic.globals = 내장 변수
|
||||
|
||||
editor.name = 이름:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detaliau...
|
|||
edit = Redaguoti...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Pavadinimas:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Bewerk...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Naam:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Edit...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Name:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detale...
|
|||
edit = Edytuj...
|
||||
variables = Zmienne
|
||||
logic.clear.confirm = Czy na pewno chcesz wyczyścić cały kod z tego procesora??
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nazwa:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalhes...
|
|||
edit = Editar...
|
||||
variables = Variáveis
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nome:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalhes...
|
|||
edit = Editar...
|
||||
variables = Variáveis
|
||||
logic.clear.confirm = Tens a certeza que querea apagar todo o código deste procesador?
|
||||
logic.restart = Restart
|
||||
logic.globals = Variáveis Embutidas
|
||||
|
||||
editor.name = Nome:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalii...
|
|||
edit = Editează...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Nume:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Подробности...
|
|||
edit = Редактировать...
|
||||
variables = Переменные
|
||||
logic.clear.confirm = Вы уверены, что хотите удалить весь код из этого процессора?
|
||||
logic.restart = Restart
|
||||
logic.globals = Встроенные переменные
|
||||
|
||||
editor.name = Название:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detalji...
|
|||
edit = Izmeni...
|
||||
variables = Varijabla
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Ime:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Redigera...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Namn:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = รายละเอียด...
|
|||
edit = แก้ไข...
|
||||
variables = ตัวแปร
|
||||
logic.clear.confirm = คุณแน่ใจหรือว่าจะเคลียร์โค้ดทั้งหมดของตัวประมวลผลนี้?
|
||||
logic.restart = Restart
|
||||
logic.globals = ตัวแปรค่าเริ่มต้น
|
||||
|
||||
editor.name = ชื่อ:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Details...
|
|||
edit = Edit...
|
||||
variables = Vars
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = isim:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Detaylar...
|
|||
edit = Düzenle...
|
||||
variables = Değişkenler
|
||||
logic.clear.confirm = Bu işlemciden bütün kodları silmek istediğinze emin misiniz?
|
||||
logic.restart = Restart
|
||||
logic.globals = Dahili Değişkenler
|
||||
|
||||
editor.name = İsim:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Подробиці…
|
|||
edit = Змінити…
|
||||
variables = Змінні
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = Built-in Variables
|
||||
|
||||
editor.name = Ім’я:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = Chi tiết...
|
|||
edit = Chỉnh sửa
|
||||
variables = Biến số
|
||||
logic.clear.confirm = Bạn có muốn xóa sạch tất cả mã khỏi bộ xử lý này?
|
||||
logic.restart = Restart
|
||||
logic.globals = Biến số sẵn có
|
||||
|
||||
editor.name = Tên:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = 详情
|
|||
edit = 编辑
|
||||
variables = 变量
|
||||
logic.clear.confirm = 确定要清除此处理器中的所有代码吗?
|
||||
logic.restart = Restart
|
||||
logic.globals = 内建变量
|
||||
|
||||
editor.name = 名称:
|
||||
|
|
|
|||
|
|
@ -525,6 +525,7 @@ details = 詳細資訊……
|
|||
edit = 編輯……
|
||||
variables = 變數
|
||||
logic.clear.confirm = Are you sure you want to clear all code from this processor?
|
||||
logic.restart = Restart
|
||||
logic.globals = 內建變數
|
||||
|
||||
editor.name = 名稱:
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class LogicDialog extends BaseDialog{
|
|||
boolean privileged;
|
||||
@Nullable LExecutor executor;
|
||||
GlobalVarsDialog globalsDialog = new GlobalVarsDialog();
|
||||
boolean wasRows, wasPortrait;
|
||||
boolean wasRows, wasPortrait, forceRestart;
|
||||
|
||||
public LogicDialog(){
|
||||
super("logic");
|
||||
|
|
@ -142,7 +142,14 @@ public class LogicDialog extends BaseDialog{
|
|||
}catch(Throwable e){
|
||||
ui.showException(e);
|
||||
}
|
||||
}).marginLeft(12f).disabled(b -> Core.app.getClipboardText() == null);
|
||||
}).marginLeft(12f).disabled(b -> Core.app.getClipboardText() == null).row();
|
||||
|
||||
t.button("@logic.restart", Icon.refresh, style, () -> {
|
||||
forceRestart = true;
|
||||
dialog.hide();
|
||||
hide();
|
||||
}).marginLeft(12f);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -336,6 +343,7 @@ public class LogicDialog extends BaseDialog{
|
|||
public void show(String code, LExecutor executor, boolean privileged, Cons<String> modified){
|
||||
this.executor = executor;
|
||||
this.privileged = privileged;
|
||||
this.forceRestart = false;
|
||||
canvas.statements.clearChildren();
|
||||
canvas.rebuild();
|
||||
canvas.privileged = privileged;
|
||||
|
|
@ -346,7 +354,7 @@ public class LogicDialog extends BaseDialog{
|
|||
canvas.load("");
|
||||
}
|
||||
this.consumer = result -> {
|
||||
if(!result.equals(code)){
|
||||
if(forceRestart || !result.equals(code)){
|
||||
modified.get(result);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue