pets mouseover macros enabled

This commit is contained in:
Sumsebrum 2021-06-20 00:50:06 +02:00
parent 9edb632efc
commit b17e58f558

View File

@ -137,9 +137,9 @@ function Pets:CreateFrame(unitId)
--button:SetAlpha(0) --button:SetAlpha(0)
button:SetPoint("LEFT", Gladdy.buttons[unitId].healthBar, "RIGHT", Gladdy.db.petXOffset, Gladdy.db.petYOffset) button:SetPoint("LEFT", Gladdy.buttons[unitId].healthBar, "RIGHT", Gladdy.db.petXOffset, Gladdy.db.petYOffset)
local secure = CreateFrame("Button", "GladdyButton" .. unit, button, "SecureActionButtonTemplate") local secure = CreateFrame("Button", "GladdyButton" .. unit, button, "SecureActionButtonTemplate, SecureHandlerEnterLeaveTemplate")
secure:RegisterForClicks("AnyUp")
secure:RegisterForClicks("AnyUp") secure:RegisterForClicks("AnyUp")
secure:RegisterForClicks("AnyDown")
secure:SetAttribute("*type1", "target") secure:SetAttribute("*type1", "target")
secure:SetAttribute("*type2", "focus") secure:SetAttribute("*type2", "focus")
secure:SetAttribute("unit", unit) secure:SetAttribute("unit", unit)