Added copy text in tooltip of uid

This commit is contained in:
cake
2025-12-15 20:22:31 +01:00
parent eb11ff0b4c
commit bdfcf254a8

View File

@@ -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);