add click to target in ui

This commit is contained in:
rootdarkarchon
2023-11-26 13:02:44 +01:00
parent 5d20936a05
commit a205c25e3d
4 changed files with 43 additions and 22 deletions

View File

@@ -208,7 +208,11 @@ public class DrawUserPair
else if (_pair.IsVisible)
{
UiSharedService.NormalizedIcon(FontAwesomeIcon.Eye, ImGuiColors.ParsedGreen);
userPairText = _pair.UserData.AliasOrUID + " is visible: " + _pair.PlayerName;
userPairText = _pair.UserData.AliasOrUID + " is visible: " + _pair.PlayerName + Environment.NewLine + "Click to target this player";
if (ImGui.IsItemClicked())
{
_mediator.Publish(new TargetPairMessage(_pair));
}
}
else
{
@@ -243,6 +247,7 @@ public class DrawUserPair
return "Paired through " + groupString;
}));
}
UiSharedService.AttachToolTip(userPairText);
ImGui.SameLine();