Minimap - Hide Addon Buttons - Mouseover
Make mouseovering minimap itself to show buttons.
This commit is contained in:
@@ -24,8 +24,6 @@ Manage Debuffs - Test IT in fight.
|
|||||||
-- What i plan to do in near future list from easy to hard
|
-- What i plan to do in near future list from easy to hard
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Minimap - Hide POI ARROWS Tweak.
|
|
||||||
|
|
||||||
Minimap - show time by user option.
|
Minimap - show time by user option.
|
||||||
|
|
||||||
MinimapButton - Add functions to alt-click and other clicks on button (prio - error text togggle)
|
MinimapButton - Add functions to alt-click and other clicks on button (prio - error text togggle)
|
||||||
|
|||||||
+7
-4
@@ -6013,6 +6013,7 @@ function LeaPlusLC:Player()
|
|||||||
Minimap:HookScript("OnUpdate", function(self, elapsed)
|
Minimap:HookScript("OnUpdate", function(self, elapsed)
|
||||||
local numChildren = Minimap:GetNumChildren()
|
local numChildren = Minimap:GetNumChildren()
|
||||||
local mouseOverChild = false
|
local mouseOverChild = false
|
||||||
|
local mouseOverMinimap = Minimap:IsMouseOver() -- Check if the mouse is over the minimap
|
||||||
for i = 1, numChildren do
|
for i = 1, numChildren do
|
||||||
local child = select(i, Minimap:GetChildren())
|
local child = select(i, Minimap:GetChildren())
|
||||||
if child and child:IsObjectType("Button") then
|
if child and child:IsObjectType("Button") then
|
||||||
@@ -6031,10 +6032,11 @@ function LeaPlusLC:Player()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not mouseOverChild then
|
-- If the mouse is over either the minimap or a child, show the buttons
|
||||||
HideMinimapButtons()
|
if mouseOverMinimap or mouseOverChild then
|
||||||
else
|
|
||||||
ShowMinimapButtons()
|
ShowMinimapButtons()
|
||||||
|
else
|
||||||
|
HideMinimapButtons()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@@ -6465,8 +6467,9 @@ function LeaPlusLC:Player()
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- Hide POI arrows
|
||||||
local function SetupPOI()
|
local function SetupPOI()
|
||||||
-- Hide POI arrows
|
|
||||||
if LeaPlusLC["HideMiniPOIArrows"] == "On" then
|
if LeaPlusLC["HideMiniPOIArrows"] == "On" then
|
||||||
Minimap:SetStaticPOIArrowTexture("Interface\\addons\\Leatrix_Plus\\assets\\ROTATING-MINIMAPARROW")
|
Minimap:SetStaticPOIArrowTexture("Interface\\addons\\Leatrix_Plus\\assets\\ROTATING-MINIMAPARROW")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user