Eliminate unnecessary whitespace in examine (#479)
* eliminate unnecessary whitespace in examine * oops
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Threading;
|
using System.Linq;
|
||||||
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Content.Shared.GameObjects.EntitySystemMessages;
|
using Content.Shared.GameObjects.EntitySystemMessages;
|
||||||
using Content.Shared.GameObjects.EntitySystems;
|
using Content.Shared.GameObjects.EntitySystems;
|
||||||
@@ -18,6 +19,7 @@ using Robust.Shared.IoC;
|
|||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
using Robust.Shared.Players;
|
using Robust.Shared.Players;
|
||||||
|
using Robust.Shared.Utility;
|
||||||
|
|
||||||
namespace Content.Client.GameObjects.EntitySystems
|
namespace Content.Client.GameObjects.EntitySystems
|
||||||
{
|
{
|
||||||
@@ -132,9 +134,16 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
_requestCancelTokenSource = null;
|
_requestCancelTokenSource = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var richLabel = new RichTextLabel();
|
foreach (var msg in response.Message.Tags.OfType<FormattedMessage.TagText>())
|
||||||
richLabel.SetMessage(response.Message);
|
{
|
||||||
vBox.AddChild(richLabel);
|
if (!string.IsNullOrWhiteSpace(msg.Text))
|
||||||
|
{
|
||||||
|
var richLabel = new RichTextLabel();
|
||||||
|
richLabel.SetMessage(response.Message);
|
||||||
|
vBox.AddChild(richLabel);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_examineTooltipOpen.Position += Vector2.ComponentMin(Vector2.Zero,_userInterfaceManager.StateRoot.Size - (panel.Size + _examineTooltipOpen.Position));
|
_examineTooltipOpen.Position += Vector2.ComponentMin(Vector2.Zero,_userInterfaceManager.StateRoot.Size - (panel.Size + _examineTooltipOpen.Position));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user