Attempt at a more noticably whispered bubble (#25602)

* Attempt at a more noticably whispered bubble

* Better implementation

(cherry picked from commit 4f698a6e0d74d28713e2dabbfb20969477538e11)
This commit is contained in:
maylokana 2024-03-13 03:03:32 -05:00 committed by Debug
parent 2c56535977
commit 1356203d30
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
2 changed files with 10 additions and 1 deletions

View 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

View 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)),