Added Whisper system for talking with players 2 tiles away. (#5994)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -349,6 +349,15 @@ namespace Content.Client.Stylesheets
|
||||
tooltipBox.SetPatchMargin(StyleBox.Margin.All, 2);
|
||||
tooltipBox.SetContentMarginOverride(StyleBox.Margin.Horizontal, 7);
|
||||
|
||||
// Whisper box
|
||||
var whisperTexture = resCache.GetTexture("/Textures/Interface/Nano/whisper.png");
|
||||
var whisperBox = new StyleBoxTexture
|
||||
{
|
||||
Texture = whisperTexture,
|
||||
};
|
||||
whisperBox.SetPatchMargin(StyleBox.Margin.All, 2);
|
||||
whisperBox.SetContentMarginOverride(StyleBox.Margin.Horizontal, 7);
|
||||
|
||||
// Placeholder
|
||||
var placeholderTexture = resCache.GetTexture("/Textures/Interface/Nano/placeholder.png");
|
||||
var placeholder = new StyleBoxTexture {Texture = placeholderTexture};
|
||||
@@ -778,6 +787,11 @@ namespace Content.Client.Stylesheets
|
||||
new StyleProperty(PanelContainer.StylePropertyPanel, tooltipBox)
|
||||
}),
|
||||
|
||||
new StyleRule(new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "whisperBox"}, null, null), new[]
|
||||
{
|
||||
new StyleProperty(PanelContainer.StylePropertyPanel, whisperBox)
|
||||
}),
|
||||
|
||||
new StyleRule(new SelectorChild(
|
||||
new SelectorElement(typeof(PanelContainer), new[] {"speechBox", "emoteBox"}, null, null),
|
||||
new SelectorElement(typeof(RichTextLabel), null, null, null)),
|
||||
|
||||
Reference in New Issue
Block a user