fix clicks
This commit is contained in:
parent
4148e775a9
commit
af17c7e1b9
18
Frame.lua
18
Frame.lua
@ -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")
|
||||
|
@ -224,5 +224,6 @@ function Clicks:GetOptions()
|
||||
end
|
||||
|
||||
function Clicks:UpdateFrame(unit)
|
||||
Clicks:SetupAttributes(unit)
|
||||
self:SetupAttributes(unit)
|
||||
self:JOINED_ARENA()
|
||||
end
|
@ -21,8 +21,6 @@ end
|
||||
local ExportImport = Gladdy:NewModule("Export Import", nil, {
|
||||
})
|
||||
|
||||
|
||||
|
||||
local export = AceGUI:Create("Frame")
|
||||
export:SetWidth(550)
|
||||
export.sizer_se:Hide()
|
||||
|
Loading…
Reference in New Issue
Block a user