mouseover macros now possible

This commit is contained in:
Sumsebrum 2021-06-15 17:10:31 +02:00
parent d7f31dbdab
commit 0b9c33b867

View File

@ -306,8 +306,7 @@ function Gladdy:CreateButton(i)
--button.texture:SetAllPoints(button) --button.texture:SetAllPoints(button)
--button.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp") --button.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")
local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate") local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate, SecureHandlerEnterLeaveTemplate")
secure:RegisterForClicks("AnyUp")
secure:RegisterForClicks("AnyUp") secure:RegisterForClicks("AnyUp")
secure:SetAttribute("*type1", "target") secure:SetAttribute("*type1", "target")
secure:SetAttribute("*type2", "focus") secure:SetAttribute("*type2", "focus")