From a7f1520d1f0fa130b4a7e4b1b79862a809206b9a Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Wed, 31 Jul 2019 16:45:54 +0200 Subject: [PATCH] Fix speech bubble UI blocking world interaction. --- Content.Client/Chat/ChatManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Content.Client/Chat/ChatManager.cs b/Content.Client/Chat/ChatManager.cs index 0f923df1eb..585f61862f 100644 --- a/Content.Client/Chat/ChatManager.cs +++ b/Content.Client/Chat/ChatManager.cs @@ -81,7 +81,10 @@ namespace Content.Client.Chat { _netManager.RegisterNetMessage(MsgChatMessage.NAME, _onChatMessage); - _speechBubbleRoot = new Control(); + _speechBubbleRoot = new Control + { + MouseFilter = Control.MouseFilterMode.Ignore + }; _speechBubbleRoot.SetAnchorPreset(Control.LayoutPreset.Wide); _userInterfaceManager.StateRoot.AddChild(_speechBubbleRoot); _speechBubbleRoot.SetPositionFirst(); @@ -328,7 +331,7 @@ namespace Content.Client.Chat { // Word is STILL too long. // Truncate it with an ellipse. - messages.Add($"{word.Substring(0, SingleBubbleCharLimit-3)}..."); + messages.Add($"{word.Substring(0, SingleBubbleCharLimit - 3)}..."); currentWordLength = 0; continue; }