Merge pull request #133 from frosty-dev/speech-bubble-elements-refactor

[Feat/Tweak] Рефактор элементов рич текста для speechbubble
This commit is contained in:
DocNight
2023-06-02 21:54:15 +03:00
committed by Aviu00
parent ddd35d7b5b
commit cd6c9301c9
4 changed files with 510 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
using System.Numerics;
using Content.Client.Chat.Managers;
using Content.Shared.CCVar;
using Content.Shared.Chat;
using Content.Client.White.UserInterface.Controls;
using Robust.Client.Graphics;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
@@ -209,7 +209,7 @@ namespace Content.Client.Chat.UI
protected override Control BuildBubble(ChatMessage message, string speechStyleClass, Color? fontColor = null)
{
var label = new RichTextLabel
var label = new ChatRichTextLabel
{
MaxWidth = SpeechMaxWidth,
};