Attempt at a more noticably whispered bubble (#25602)
* Attempt at a more noticably whispered bubble * Better implementation
This commit is contained in:
@@ -252,7 +252,8 @@ namespace Content.Client.Chat.UI
|
|||||||
var bubbleContent = new RichTextLabel
|
var bubbleContent = new RichTextLabel
|
||||||
{
|
{
|
||||||
MaxWidth = SpeechMaxWidth,
|
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
|
//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
|
||||||
|
|||||||
@@ -926,6 +926,14 @@ namespace Content.Client.Stylesheets
|
|||||||
new StyleProperty(PanelContainer.StylePropertyPanel, whisperBox)
|
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 StyleRule(new SelectorChild(
|
||||||
new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "emoteBox"}, null, null),
|
new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "emoteBox"}, null, null),
|
||||||
new SelectorElement(typeof(RichTextLabel), null, null, null)),
|
new SelectorElement(typeof(RichTextLabel), null, null, null)),
|
||||||
|
|||||||
Reference in New Issue
Block a user