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

@@ -856,10 +856,10 @@ public class SyncshellAdminUI : WindowMediatorSubscriberBase
UiSharedService.ColorText(text, boolcolor); UiSharedService.ColorText(text, boolcolor);
if (ImGui.IsItemClicked()) if (ImGui.IsItemClicked())
ImGui.SetClipboardText(text); ImGui.SetClipboardText(pair.UserData.AliasOrUID);
if (!string.IsNullOrEmpty(pair.PlayerName)) 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); DrawUserActions(pair, GroupFullInfo, userInfo, isUserOwner, baselineY);