From bdfcf254a8387477becafb0701bf1bba3e55cdd7 Mon Sep 17 00:00:00 2001 From: cake Date: Mon, 15 Dec 2025 20:22:31 +0100 Subject: [PATCH] Added copy text in tooltip of uid --- LightlessSync/UI/SyncshellAdminUI.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LightlessSync/UI/SyncshellAdminUI.cs b/LightlessSync/UI/SyncshellAdminUI.cs index a60924c..730d124 100644 --- a/LightlessSync/UI/SyncshellAdminUI.cs +++ b/LightlessSync/UI/SyncshellAdminUI.cs @@ -854,12 +854,12 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase var boolcolor = UiSharedService.GetBoolColor(pair.IsOnline); UiSharedService.ColorText(text, boolcolor); - + if (ImGui.IsItemClicked()) - ImGui.SetClipboardText(text); + ImGui.SetClipboardText(pair.UserData.AliasOrUID); if (!string.IsNullOrEmpty(pair.PlayerName)) - UiSharedService.AttachToolTip(pair.PlayerName); + UiSharedService.AttachToolTip(pair.PlayerName + $"{Environment.NewLine}Click to copy UID or Alias"); DrawUserActions(pair, GroupFullInfo, userInfo, isUserOwner, baselineY);