adding Clicks module again

This commit is contained in:
Sumsebrum
2021-06-16 01:14:11 +02:00
parent 5776dde270
commit 505154e699
4 changed files with 252 additions and 6 deletions

View File

@ -255,7 +255,7 @@ function Gladdy:UpdateFrame()
for _, v in self:IterModules() do
self:Call(v, "UpdateFrame", button.unit)
self:Call(v, "UpdateFrame", "arena" .. i)
end
end
for _, v in self:IterModules() do
@ -308,8 +308,9 @@ function Gladdy:CreateButton(i)
local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate, SecureHandlerEnterLeaveTemplate")
secure:RegisterForClicks("AnyUp")
secure:SetAttribute("*type1", "target")
secure:SetAttribute("*type2", "focus")
secure:SetAttribute("*type*", "macro")
--secure:SetAttribute("*type1", "target")
--secure:SetAttribute("*type2", "focus")
secure:SetAttribute("unit", "arena" .. i)
--secure.texture = secure:CreateTexture(nil, "OVERLAY")
--secure.texture:SetAllPoints(secure)
@ -320,12 +321,12 @@ function Gladdy:CreateButton(i)
button.secure = secure
self:ResetButton(button.unit)
self:ResetButton("arena" .. i)
self.buttons[button.unit] = button
self.buttons["arena" .. i] = button
for _, v in self:IterModules() do
self:Call(v, "CreateFrame", button.unit)
self:Call(v, "CreateFrame", "arena" .. i)
end
end