Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2025-04-30 13:10:10 -04:00
36 changed files with 46 additions and 3 deletions

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Edit edit = Edit
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Name: editor.name = Name:

View File

@@ -525,6 +525,7 @@ details = Падрабязнасці...
edit = Рэдагаваць... edit = Рэдагаваць...
variables = Пераменныя variables = Пераменныя
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Назва: editor.name = Назва:

View File

@@ -525,6 +525,7 @@ details = Детайли...
edit = Редактирай... edit = Редактирай...
variables = Променливи variables = Променливи
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Име: editor.name = Име:

View File

@@ -525,6 +525,7 @@ details = Detalls
edit = Edita edit = Edita
variables = Variables variables = Variables
logic.clear.confirm = Esteu segur que voleu esborrar tot el codi daquest processador? logic.clear.confirm = Esteu segur que voleu esborrar tot el codi daquest processador?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nom: editor.name = Nom:

View File

@@ -525,6 +525,7 @@ details = Podrobnosti...
edit = Upravit... edit = Upravit...
variables = Hodnoty variables = Hodnoty
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Vestavěné proměnné logic.globals = Vestavěné proměnné
editor.name = Jméno: editor.name = Jméno:

View File

@@ -525,6 +525,7 @@ details = Detaljer...
edit = Rediger... edit = Rediger...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Navn: editor.name = Navn:

View File

@@ -525,6 +525,7 @@ details = Details
edit = Bearbeiten edit = Bearbeiten
variables = Variablen variables = Variablen
logic.clear.confirm = Willst du wirklich den gesamten Code aus diesem Prozessor löschen? logic.clear.confirm = Willst du wirklich den gesamten Code aus diesem Prozessor löschen?
logic.restart = Restart
logic.globals = Eingebaute Variablen logic.globals = Eingebaute Variablen
editor.name = Name: editor.name = Name:

View File

@@ -525,6 +525,7 @@ details = Detalles...
edit = Editar... edit = Editar...
variables = Variables variables = Variables
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nombre: editor.name = Nombre:

View File

@@ -525,6 +525,7 @@ details = Üksikasjad...
edit = Muuda... edit = Muuda...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nimi: editor.name = Nimi:

View File

@@ -525,6 +525,7 @@ details = Xehetasunak...
edit = Editatu... edit = Editatu...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Izena: editor.name = Izena:

View File

@@ -525,6 +525,7 @@ details = Yksityiskohdat...
edit = Muokkaa... edit = Muokkaa...
variables = Muuttujat variables = Muuttujat
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nimi: editor.name = Nimi:

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Edit... edit = Edit...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Name: editor.name = Name:

View File

@@ -525,6 +525,7 @@ details = Détails...
edit = Modifier... edit = Modifier...
variables = Variables variables = Variables
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nom : editor.name = Nom :

View File

@@ -525,6 +525,7 @@ details = Részletek…
edit = Szerkesztés edit = Szerkesztés
variables = Változók variables = Változók
logic.clear.confirm = Biztosan törölni akarod az összes kódot ebből a processzorból? 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 logic.globals = Beépített változók
editor.name = Név: editor.name = Név:

View File

@@ -525,6 +525,7 @@ details = Detail...
edit = Sunting edit = Sunting
variables = Variabel variables = Variabel
logic.clear.confirm = Apakah Anda yakin ingin menghapus semua kode dari prosesor ini? logic.clear.confirm = Apakah Anda yakin ingin menghapus semua kode dari prosesor ini?
logic.restart = Restart
logic.globals = Variabel Bawaan logic.globals = Variabel Bawaan
editor.name = Nama: editor.name = Nama:

View File

@@ -525,6 +525,7 @@ details = Dettagli...
edit = Modifica... edit = Modifica...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nome: editor.name = Nome:

View File

@@ -525,6 +525,7 @@ details = 詳細...
edit = 編集... edit = 編集...
variables = 変数 variables = 変数
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = 名前: editor.name = 名前:

View File

@@ -525,6 +525,7 @@ details = 설명...
edit = 편집... edit = 편집...
variables = 변수 variables = 변수
logic.clear.confirm = 이 프로세서의 모든 코드를 삭제하시겠습니까? logic.clear.confirm = 이 프로세서의 모든 코드를 삭제하시겠습니까?
logic.restart = Restart
logic.globals = 내장 변수 logic.globals = 내장 변수
editor.name = 이름: editor.name = 이름:

View File

@@ -525,6 +525,7 @@ details = Detaliau...
edit = Redaguoti... edit = Redaguoti...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Pavadinimas: editor.name = Pavadinimas:

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Bewerk... edit = Bewerk...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Naam: editor.name = Naam:

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Edit... edit = Edit...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Name: editor.name = Name:

View File

@@ -525,6 +525,7 @@ details = Detale...
edit = Edytuj... edit = Edytuj...
variables = Zmienne variables = Zmienne
logic.clear.confirm = Czy na pewno chcesz wyczyścić cały kod z tego procesora?? logic.clear.confirm = Czy na pewno chcesz wyczyścić cały kod z tego procesora??
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nazwa: editor.name = Nazwa:

View File

@@ -525,6 +525,7 @@ details = Detalhes...
edit = Editar... edit = Editar...
variables = Variáveis variables = Variáveis
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nome: editor.name = Nome:

View File

@@ -525,6 +525,7 @@ details = Detalhes...
edit = Editar... edit = Editar...
variables = Variáveis variables = Variáveis
logic.clear.confirm = Tens a certeza que querea apagar todo o código deste procesador? logic.clear.confirm = Tens a certeza que querea apagar todo o código deste procesador?
logic.restart = Restart
logic.globals = Variáveis Embutidas logic.globals = Variáveis Embutidas
editor.name = Nome: editor.name = Nome:

View File

@@ -525,6 +525,7 @@ details = Detalii...
edit = Editează... edit = Editează...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Nume: editor.name = Nume:

View File

@@ -525,6 +525,7 @@ details = Подробности...
edit = Редактировать... edit = Редактировать...
variables = Переменные variables = Переменные
logic.clear.confirm = Вы уверены, что хотите удалить весь код из этого процессора? logic.clear.confirm = Вы уверены, что хотите удалить весь код из этого процессора?
logic.restart = Restart
logic.globals = Встроенные переменные logic.globals = Встроенные переменные
editor.name = Название: editor.name = Название:

View File

@@ -525,6 +525,7 @@ details = Detalji...
edit = Izmeni... edit = Izmeni...
variables = Varijabla variables = Varijabla
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Ime: editor.name = Ime:

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Redigera... edit = Redigera...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Namn: editor.name = Namn:

View File

@@ -525,6 +525,7 @@ details = รายละเอียด...
edit = แก้ไข... edit = แก้ไข...
variables = ตัวแปร variables = ตัวแปร
logic.clear.confirm = คุณแน่ใจหรือว่าจะเคลียร์โค้ดทั้งหมดของตัวประมวลผลนี้? logic.clear.confirm = คุณแน่ใจหรือว่าจะเคลียร์โค้ดทั้งหมดของตัวประมวลผลนี้?
logic.restart = Restart
logic.globals = ตัวแปรค่าเริ่มต้น logic.globals = ตัวแปรค่าเริ่มต้น
editor.name = ชื่อ: editor.name = ชื่อ:

View File

@@ -525,6 +525,7 @@ details = Details...
edit = Edit... edit = Edit...
variables = Vars variables = Vars
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = isim: editor.name = isim:

View File

@@ -525,6 +525,7 @@ details = Detaylar...
edit = Düzenle... edit = Düzenle...
variables = Değişkenler variables = Değişkenler
logic.clear.confirm = Bu işlemciden bütün kodları silmek istediğinze emin misiniz? logic.clear.confirm = Bu işlemciden bütün kodları silmek istediğinze emin misiniz?
logic.restart = Restart
logic.globals = Dahili Değişkenler logic.globals = Dahili Değişkenler
editor.name = İsim: editor.name = İsim:

View File

@@ -525,6 +525,7 @@ details = Подробиці…
edit = Змінити… edit = Змінити…
variables = Змінні variables = Змінні
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = Built-in Variables logic.globals = Built-in Variables
editor.name = Ім’я: editor.name = Ім’я:

View File

@@ -525,6 +525,7 @@ details = Chi tiết...
edit = Chỉnh sửa edit = Chỉnh sửa
variables = Biến số 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.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ó logic.globals = Biến số sẵn có
editor.name = Tên: editor.name = Tên:

View File

@@ -525,6 +525,7 @@ details = 详情
edit = 编辑 edit = 编辑
variables = 变量 variables = 变量
logic.clear.confirm = 确定要清除此处理器中的所有代码吗? logic.clear.confirm = 确定要清除此处理器中的所有代码吗?
logic.restart = Restart
logic.globals = 内建变量 logic.globals = 内建变量
editor.name = 名称: editor.name = 名称:

View File

@@ -525,6 +525,7 @@ details = 詳細資訊……
edit = 編輯…… edit = 編輯……
variables = 變數 variables = 變數
logic.clear.confirm = Are you sure you want to clear all code from this processor? logic.clear.confirm = Are you sure you want to clear all code from this processor?
logic.restart = Restart
logic.globals = 內建變數 logic.globals = 內建變數
editor.name = 名稱: editor.name = 名稱:

View File

@@ -31,7 +31,7 @@ public class LogicDialog extends BaseDialog{
boolean privileged; boolean privileged;
@Nullable LExecutor executor; @Nullable LExecutor executor;
GlobalVarsDialog globalsDialog = new GlobalVarsDialog(); GlobalVarsDialog globalsDialog = new GlobalVarsDialog();
boolean wasRows, wasPortrait; boolean wasRows, wasPortrait, forceRestart;
public LogicDialog(){ public LogicDialog(){
super("logic"); super("logic");
@@ -142,7 +142,14 @@ public class LogicDialog extends BaseDialog{
}catch(Throwable e){ }catch(Throwable e){
ui.showException(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){ public void show(String code, LExecutor executor, boolean privileged, Cons<String> modified){
this.executor = executor; this.executor = executor;
this.privileged = privileged; this.privileged = privileged;
this.forceRestart = false;
canvas.statements.clearChildren(); canvas.statements.clearChildren();
canvas.rebuild(); canvas.rebuild();
canvas.privileged = privileged; canvas.privileged = privileged;
@@ -346,7 +354,7 @@ public class LogicDialog extends BaseDialog{
canvas.load(""); canvas.load("");
} }
this.consumer = result -> { this.consumer = result -> {
if(!result.equals(code)){ if(forceRestart || !result.equals(code)){
modified.get(result); modified.get(result);
} }
}; };