]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Attempt at a more noticably whispered bubble (#25602)
authormaylokana <88361930+maylokana@users.noreply.github.com>
Wed, 13 Mar 2024 08:03:32 +0000 (03:03 -0500)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 08:03:32 +0000 (19:03 +1100)
* Attempt at a more noticably whispered bubble

* Better implementation

Content.Client/Chat/UI/SpeechBubble.cs
Content.Client/Stylesheets/StyleNano.cs

index 82eccbcec84b4f49b39c2f8ca5c22c081fcd5794..68c937a788551e82bb0b9f9683df5d37dec66794 100644 (file)
@@ -252,7 +252,8 @@ namespace Content.Client.Chat.UI
             var bubbleContent = new RichTextLabel
             {
                 MaxWidth = SpeechMaxWidth,
-                Margin = new Thickness(2, 6, 2, 2)
+                Margin = new Thickness(2, 6, 2, 2),
+                StyleClasses = { "bubbleContent" }
             };
 
             //We'll be honest. *Yes* this is hacky. Doing this in a cleaner way would require a bottom-up refactor of how saycode handles sending chat messages. -Myr
index fcf68e502b8c8b19bb78644486607693614b38fb..426af1616eced8d91b339ea6fdd692afb375c296 100644 (file)
@@ -926,6 +926,14 @@ namespace Content.Client.Stylesheets
                     new StyleProperty(PanelContainer.StylePropertyPanel, whisperBox)
                 }),
 
+                new StyleRule(new SelectorChild(
+                    new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "whisperBox"}, null, null),
+                    new SelectorElement(typeof(RichTextLabel), new[] {"bubbleContent"}, null, null)),
+                    new[]
+                {
+                    new StyleProperty("font", notoSansItalic12),
+                }),
+
                 new StyleRule(new SelectorChild(
                     new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "emoteBox"}, null, null),
                     new SelectorElement(typeof(RichTextLabel), null, null, null)),