mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 20:40:50 +00:00
Use region:IsMouseOver instead of the MouseIsOver global
This commit is contained in:
+2
-2
@@ -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
@@ -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("")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user