From b62b860f4fc656927f2709d0ec5e621b24f394f5 Mon Sep 17 00:00:00 2001 From: Subversionary <109166122+Subversionary@users.noreply.github.com> Date: Mon, 30 Oct 2023 23:10:30 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D1=8B=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D0=B0=D0=BF=D0=BE=D0=B2=20=D0=B2=20=D1=87?= =?UTF-8?q?=D0=B0=D1=82=D0=B5=20(#525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/Popups/PopupSystem.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Content.Client/Popups/PopupSystem.cs b/Content.Client/Popups/PopupSystem.cs index 7090b81f4d..3fb3e763e9 100644 --- a/Content.Client/Popups/PopupSystem.cs +++ b/Content.Client/Popups/PopupSystem.cs @@ -82,9 +82,20 @@ namespace Content.Client.Popups _aliveWorldLabels.Add(label); + var fontSizeDict = new Dictionary + { + { PopupType.Medium, "12" }, + { PopupType.MediumCaution, "12" }, + { PopupType.Large, "15" }, + { PopupType.LargeCaution, "15" } + }; + + var fontsize = fontSizeDict.ContainsKey(type) ? fontSizeDict[type] : "10"; + var fontcolor = (type == PopupType.LargeCaution || type == PopupType.MediumCaution || type == PopupType.SmallCaution) ? "c62828" : "aeabc4"; + if (isLogging) { - _chatManager.SendMessage($"notice [font size=10][color=#aeabc4]{message}[/color][/font]", ChatSelectChannel.Console); + _chatManager.SendMessage($"notice [font size={fontsize}][color=#{fontcolor}]{message}[/color][/font]", ChatSelectChannel.Console); } }