Use region:IsMouseOver instead of the MouseIsOver global

This commit is contained in:
Brues
2026-10-22 21:37:50 -05:00
parent b9f473c049
commit d881d73246
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ pfUI:RegisterModule("mapcolors", function ()
local tooltipText = ""
if unit_button_name == 'WorldMap' then
-- check player
if MouseIsOver(WorldMapPlayer) then
if WorldMapPlayer:IsMouseOver() then
ColorizeName(WorldMapPlayer)
tooltipText = WorldMapPlayer.name
end
@@ -104,7 +104,7 @@ pfUI:RegisterModule("mapcolors", function ()
-- check party
for i=1, MAX_PARTY_MEMBERS do
local frame = _G[unit_button_name.."Party"..i]
if frame:IsVisible() and MouseIsOver(frame) then
if frame:IsVisible() and frame:IsMouseOver() then
ColorizeName(frame)
tooltipText = tooltipText.."\n"..frame.name
end
@@ -113,7 +113,7 @@ pfUI:RegisterModule("mapcolors", function ()
--check Raid
for i=1, MAX_RAID_MEMBERS do
local frame = _G[unit_button_name.."Raid"..i]
if frame:IsVisible() and MouseIsOver(frame) then
if frame:IsVisible() and frame:IsMouseOver() then
ColorizeName(frame)
tooltipText = tooltipText.."\n"..frame.name
end