From c0d9e66fc81dbf7d1a6c0a5e60471318cfecf0c0 Mon Sep 17 00:00:00 2001 From: kmyuhkyuk <72241714+kmyuhkyuk@users.noreply.github.com> Date: Mon, 30 Mar 2026 23:49:53 +0800 Subject: [PATCH] Added DISABLE_DRAWING Localization Entry --- .../Screens/NMultiplayerPlayerExpandedStatePatch.cs | 8 +++++--- localization/deu/gameplay_ui.json | 3 +++ localization/eng/gameplay_ui.json | 3 +++ localization/esp/gameplay_ui.json | 3 +++ localization/fra/gameplay_ui.json | 3 +++ localization/ita/gameplay_ui.json | 3 +++ localization/jpn/gameplay_ui.json | 3 +++ localization/kor/gameplay_ui.json | 3 +++ localization/pol/gameplay_ui.json | 3 +++ localization/ptb/gameplay_ui.json | 3 +++ localization/rus/gameplay_ui.json | 3 +++ localization/spa/gameplay_ui.json | 3 +++ localization/tha/gameplay_ui.json | 3 +++ localization/tur/gameplay_ui.json | 3 +++ localization/zhs/gameplay_ui.json | 3 +++ 15 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 localization/deu/gameplay_ui.json create mode 100644 localization/eng/gameplay_ui.json create mode 100644 localization/esp/gameplay_ui.json create mode 100644 localization/fra/gameplay_ui.json create mode 100644 localization/ita/gameplay_ui.json create mode 100644 localization/jpn/gameplay_ui.json create mode 100644 localization/kor/gameplay_ui.json create mode 100644 localization/pol/gameplay_ui.json create mode 100644 localization/ptb/gameplay_ui.json create mode 100644 localization/rus/gameplay_ui.json create mode 100644 localization/spa/gameplay_ui.json create mode 100644 localization/tha/gameplay_ui.json create mode 100644 localization/tur/gameplay_ui.json create mode 100644 localization/zhs/gameplay_ui.json diff --git a/SlayTheSpire2.LAN.Multiplayer/Patchs/Screens/NMultiplayerPlayerExpandedStatePatch.cs b/SlayTheSpire2.LAN.Multiplayer/Patchs/Screens/NMultiplayerPlayerExpandedStatePatch.cs index a7b1a5b..4ac5f5f 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Patchs/Screens/NMultiplayerPlayerExpandedStatePatch.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Patchs/Screens/NMultiplayerPlayerExpandedStatePatch.cs @@ -3,6 +3,7 @@ using HarmonyLib; using MegaCrit.Sts2.Core.Assets; using MegaCrit.Sts2.Core.Entities.Players; using MegaCrit.Sts2.Core.Helpers; +using MegaCrit.Sts2.Core.Localization; using MegaCrit.Sts2.Core.Nodes.Multiplayer; using MegaCrit.Sts2.Core.Nodes.Screens.CardLibrary; using MegaCrit.Sts2.Core.Nodes.Screens.Map; @@ -40,12 +41,13 @@ namespace SlayTheSpire2.LAN.Multiplayer.Patchs.Screens var marginContainer = (MarginContainer)container.GetNode("MarginContainer"); marginContainer.RemoveThemeConstantOverride("margin_top"); - var lanMapDrawingsService = LanMapDrawingsService.Instance; - container.AddChildSafely(disableDrawing); container.MoveChild(disableDrawing, 0); - disableDrawing.SetLabel("Disable drawing"); + disableDrawing.SetLabel(new LocString("gameplay_ui", "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING") + .GetFormattedText()); + + var lanMapDrawingsService = LanMapDrawingsService.Instance; disableDrawing.IsTicked = lanMapDrawingsService.DisableDrawingHashSet.Contains(____player.NetId); diff --git a/localization/deu/gameplay_ui.json b/localization/deu/gameplay_ui.json new file mode 100644 index 0000000..55195fb --- /dev/null +++ b/localization/deu/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Zeichnen deaktivieren" +} \ No newline at end of file diff --git a/localization/eng/gameplay_ui.json b/localization/eng/gameplay_ui.json new file mode 100644 index 0000000..c12de49 --- /dev/null +++ b/localization/eng/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Disable drawing" +} \ No newline at end of file diff --git a/localization/esp/gameplay_ui.json b/localization/esp/gameplay_ui.json new file mode 100644 index 0000000..f297ca1 --- /dev/null +++ b/localization/esp/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Deshabilitar dibujo" +} \ No newline at end of file diff --git a/localization/fra/gameplay_ui.json b/localization/fra/gameplay_ui.json new file mode 100644 index 0000000..3f733b7 --- /dev/null +++ b/localization/fra/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Désactiver le dessin" +} \ No newline at end of file diff --git a/localization/ita/gameplay_ui.json b/localization/ita/gameplay_ui.json new file mode 100644 index 0000000..c744186 --- /dev/null +++ b/localization/ita/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Disabilita il disegno" +} \ No newline at end of file diff --git a/localization/jpn/gameplay_ui.json b/localization/jpn/gameplay_ui.json new file mode 100644 index 0000000..47f7a34 --- /dev/null +++ b/localization/jpn/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "描画を無効にする" +} \ No newline at end of file diff --git a/localization/kor/gameplay_ui.json b/localization/kor/gameplay_ui.json new file mode 100644 index 0000000..c7095ab --- /dev/null +++ b/localization/kor/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "그리기 비활성화" +} \ No newline at end of file diff --git a/localization/pol/gameplay_ui.json b/localization/pol/gameplay_ui.json new file mode 100644 index 0000000..5164b7f --- /dev/null +++ b/localization/pol/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Wyłącz rysowanie" +} \ No newline at end of file diff --git a/localization/ptb/gameplay_ui.json b/localization/ptb/gameplay_ui.json new file mode 100644 index 0000000..e75ae74 --- /dev/null +++ b/localization/ptb/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Desativar desenho" +} \ No newline at end of file diff --git a/localization/rus/gameplay_ui.json b/localization/rus/gameplay_ui.json new file mode 100644 index 0000000..2e503a7 --- /dev/null +++ b/localization/rus/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Отключить рисование" +} \ No newline at end of file diff --git a/localization/spa/gameplay_ui.json b/localization/spa/gameplay_ui.json new file mode 100644 index 0000000..f297ca1 --- /dev/null +++ b/localization/spa/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Deshabilitar dibujo" +} \ No newline at end of file diff --git a/localization/tha/gameplay_ui.json b/localization/tha/gameplay_ui.json new file mode 100644 index 0000000..069462d --- /dev/null +++ b/localization/tha/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "ปิดใช้งานการวาดภาพ" +} \ No newline at end of file diff --git a/localization/tur/gameplay_ui.json b/localization/tur/gameplay_ui.json new file mode 100644 index 0000000..5d3b0bf --- /dev/null +++ b/localization/tur/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Çizimi devre dışı bırak" +} \ No newline at end of file diff --git a/localization/zhs/gameplay_ui.json b/localization/zhs/gameplay_ui.json new file mode 100644 index 0000000..a824164 --- /dev/null +++ b/localization/zhs/gameplay_ui.json @@ -0,0 +1,3 @@ +{ + "SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "禁用绘图" +} \ No newline at end of file