From 00c6014be66000cc237af18f5af74514733191ab Mon Sep 17 00:00:00 2001 From: Loporrit <141286461+loporrit@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:18:54 +0000 Subject: [PATCH] Add green-eye features to group list too --- MareSynchronos/UI/Components/DrawGroupPair.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/MareSynchronos/UI/Components/DrawGroupPair.cs b/MareSynchronos/UI/Components/DrawGroupPair.cs index ecd2f1a..7805cc7 100644 --- a/MareSynchronos/UI/Components/DrawGroupPair.cs +++ b/MareSynchronos/UI/Components/DrawGroupPair.cs @@ -61,13 +61,25 @@ public class DrawGroupPair : DrawPairBase } if (_pair.IsOnline && !_pair.IsVisible) presenceText = entryUID + " is online"; - else if (_pair.IsOnline && _pair.IsVisible) presenceText = entryUID + " is visible: " + _pair.PlayerName; + else if (_pair.IsOnline && _pair.IsVisible) presenceText = entryUID + " is visible: " + _pair.PlayerName + Environment.NewLine + "Click to target this player"; ImGui.SameLine(); ImGui.SetCursorPosY(textPosY); ImGui.PushFont(UiBuilder.IconFont); UiSharedService.ColorText(presenceIcon.ToIconString(), presenceColor); ImGui.PopFont(); + if (_pair.IsVisible) + { + if (ImGui.IsItemClicked()) + { + _mediator.Publish(new TargetPairMessage(_pair)); + } + if (_pair.LastAppliedDataSize >= 0) + { + presenceText += UiSharedService.TooltipSeparator + + "Loaded Mods Size: " + UiSharedService.ByteToString(_pair.LastAppliedDataSize, true); + } + } UiSharedService.AttachToolTip(presenceText); if (entryIsOwner)