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
+2 -2
View File
@@ -526,10 +526,10 @@ pfUI:RegisterModule("chat", function ()
if pfUI.chat.hideLock then return end
if MouseIsOver(pfUI.chat.left, 10, -10, -10, 10) then
if pfUI.chat.left:IsMouseOver(10, -10, -10, 10) then
pfUI.chat.left.panelTop:Show()
FCF_DockUpdate()
elseif MouseIsOver(pfUI.chat.right, 10, -10, -10, 10) then
elseif pfUI.chat.right:IsMouseOver(10, -10, -10, 10) then
-- disable while dock is active
if pfUI.chat.right:GetAlpha() == 0 then return end
+1 -1
View File
@@ -180,7 +180,7 @@ pfUI:RegisterModule("map", function ()
my = (( my + height / 2 ) - ( y / scale )) / height * 100
end
if mx and my and MouseIsOver(WorldMapButton) then
if mx and my and WorldMapButton:IsMouseOver() then
WorldMapButton.coords.text:SetFormattedText('%.1f / %.1f', mx, my)
else
WorldMapButton.coords.text:SetText("")
+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