show focus target on visibility hover

This commit is contained in:
2025-12-03 13:59:30 +09:00
parent c335489cee
commit 1c36db97dc
4 changed files with 149 additions and 9 deletions

View File

@@ -247,6 +247,10 @@ public class DrawUserPair
else if (_pair.IsVisible)
{
_uiSharedService.IconText(FontAwesomeIcon.Eye, UIColors.Get("LightlessBlue"));
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenBlockedByActiveItem | ImGuiHoveredFlags.AllowWhenOverlapped | ImGuiHoveredFlags.AllowWhenDisabled))
{
_mediator.Publish(new PairFocusCharacterMessage(_pair));
}
if (ImGui.IsItemClicked())
{
_mediator.Publish(new TargetPairMessage(_pair));