fix clicks

This commit is contained in:
Sumsebrum 2021-06-20 02:27:27 +02:00
parent 4148e775a9
commit af17c7e1b9
3 changed files with 16 additions and 7 deletions

View File

@ -109,6 +109,10 @@ end
function Gladdy:UpdateFrame()
if (InCombatLockdown()) then
return
end
if (not self.frame) then
self:CreateFrame()
end
@ -312,11 +316,17 @@ function Gladdy:CreateButton(i)
local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate, SecureHandlerEnterLeaveTemplate")
secure:RegisterForClicks("AnyUp")
secure:RegisterForClicks("AnyDown")
--secure:SetAttribute("*type*", "macro")
--secure:SetAttribute("*type1", "target")
--secure:SetAttribute("*type2", "focus")
secure:SetAttribute("target", "arena" .. i)
secure:SetAttribute("focus", "arena" .. i)
secure:SetAttribute("unit", "arena" .. i)
--secure:SetAttribute("unit", i == 1 and "player" or "focus")
--[[
secure:SetAttribute("target", i == 1 and "player" or "focus")
secure:SetAttribute("focus", i == 1 and "player" or "focus")
secure:SetAttribute("unit", i == 1 and "player" or "focus")
--]]
--secure.texture = secure:CreateTexture(nil, "OVERLAY")
--secure.texture:SetAllPoints(secure)
--secure.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")

View File

@ -224,5 +224,6 @@ function Clicks:GetOptions()
end
function Clicks:UpdateFrame(unit)
Clicks:SetupAttributes(unit)
self:SetupAttributes(unit)
self:JOINED_ARENA()
end

View File

@ -21,8 +21,6 @@ end
local ExportImport = Gladdy:NewModule("Export Import", nil, {
})
local export = AceGUI:Create("Frame")
export:SetWidth(550)
export.sizer_se:Hide()