Added DISABLE_DRAWING Localization Entry
This commit is contained in:
+5
-3
@@ -3,6 +3,7 @@ using HarmonyLib;
|
|||||||
using MegaCrit.Sts2.Core.Assets;
|
using MegaCrit.Sts2.Core.Assets;
|
||||||
using MegaCrit.Sts2.Core.Entities.Players;
|
using MegaCrit.Sts2.Core.Entities.Players;
|
||||||
using MegaCrit.Sts2.Core.Helpers;
|
using MegaCrit.Sts2.Core.Helpers;
|
||||||
|
using MegaCrit.Sts2.Core.Localization;
|
||||||
using MegaCrit.Sts2.Core.Nodes.Multiplayer;
|
using MegaCrit.Sts2.Core.Nodes.Multiplayer;
|
||||||
using MegaCrit.Sts2.Core.Nodes.Screens.CardLibrary;
|
using MegaCrit.Sts2.Core.Nodes.Screens.CardLibrary;
|
||||||
using MegaCrit.Sts2.Core.Nodes.Screens.Map;
|
using MegaCrit.Sts2.Core.Nodes.Screens.Map;
|
||||||
@@ -40,12 +41,13 @@ namespace SlayTheSpire2.LAN.Multiplayer.Patchs.Screens
|
|||||||
var marginContainer = (MarginContainer)container.GetNode("MarginContainer");
|
var marginContainer = (MarginContainer)container.GetNode("MarginContainer");
|
||||||
marginContainer.RemoveThemeConstantOverride("margin_top");
|
marginContainer.RemoveThemeConstantOverride("margin_top");
|
||||||
|
|
||||||
var lanMapDrawingsService = LanMapDrawingsService.Instance;
|
|
||||||
|
|
||||||
container.AddChildSafely(disableDrawing);
|
container.AddChildSafely(disableDrawing);
|
||||||
container.MoveChild(disableDrawing, 0);
|
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 =
|
disableDrawing.IsTicked =
|
||||||
lanMapDrawingsService.DisableDrawingHashSet.Contains(____player.NetId);
|
lanMapDrawingsService.DisableDrawingHashSet.Contains(____player.NetId);
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Zeichnen deaktivieren"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Disable drawing"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Deshabilitar dibujo"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Désactiver le dessin"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Disabilita il disegno"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "描画を無効にする"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "그리기 비활성화"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Wyłącz rysowanie"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Desativar desenho"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Отключить рисование"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Deshabilitar dibujo"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "ปิดใช้งานการวาดภาพ"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "Çizimi devre dışı bırak"
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"SlayTheSpire2.LAN.Multiplayer.DISABLE_DRAWING": "禁用绘图"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user