This commit is contained in:
Bunny67
2018-06-03 18:29:49 +03:00
parent 82d0bad46b
commit 9b646f4d15
2 changed files with 3 additions and 28 deletions
+1 -8
View File
@@ -52,18 +52,12 @@ end
function UF:Construct_AuraIcon(button)
local offset = UF.thinBorders and E.mult or E.Border
button.text = button.cd:CreateFontString(nil, "OVERLAY")
button.text = button:CreateFontString(nil, "OVERLAY")
E:Point(button.text, "CENTER", 1, 1)
button.text:SetJustifyH("CENTER")
E:SetTemplate(button, "Default", nil, nil, UF.thinBorders, true)
button.cd.noOCC = true
button.cd.noCooldownCount = true
-- button.cd:SetReverse(true)
-- button.cd:SetDrawEdge(true)
E:SetInside(button.cd, button, offset, offset)
E:SetInside(button.icon, button, offset, offset)
button.icon:SetTexCoord(unpack(E.TexCoords))
button.icon:SetDrawLayer("ARTWORK")
@@ -73,7 +67,6 @@ function UF:Construct_AuraIcon(button)
button.count:SetJustifyH("RIGHT")
button.overlay:SetTexture(nil)
-- button.stealable:SetTexture(nil)
button:RegisterForClicks("RightButtonUp")
button:SetScript("OnClick", function(self)