Размеры попапов в чате (#525)

This commit is contained in:
Subversionary
2023-10-30 23:10:30 +02:00
committed by Aviu00
parent d213f0a989
commit b62b860f4f

View File

@@ -82,9 +82,20 @@ namespace Content.Client.Popups
_aliveWorldLabels.Add(label);
var fontSizeDict = new Dictionary<PopupType, string>
{
{ 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);
}
}