8.3.0 > 9.0.1

This commit is contained in:
Tercio Jose
2020-10-16 19:51:44 -03:00
parent 530a825358
commit c42a35657d
223 changed files with 93840 additions and 94757 deletions
+13 -1
View File
@@ -429,6 +429,18 @@ local ButtonMetaFunctions = _G[DF.GlobalWidgetControlNames ["button"]]
return self.icon:GetTexture()
end
end
function ButtonMetaFunctions:SetBackdrop(...)
return self.button:SetBackdrop(...)
end
function ButtonMetaFunctions:SetBackdropColor(...)
return self.button:SetBackdropColor(...)
end
function ButtonMetaFunctions:SetBackdropBorderColor(...)
return self.button:SetBackdropBorderColor(...)
end
function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight, short_method)
if (not self.icon) then
@@ -1053,7 +1065,7 @@ function DF:NewButton (parent, container, name, member, w, h, func, param1, para
ButtonObject.container = container
ButtonObject.options = {OnGrab = false}
ButtonObject.button = CreateFrame ("button", name, parent)
ButtonObject.button = CreateFrame ("button", name, parent,"BackdropTemplate")
DF:Mixin (ButtonObject.button, DF.WidgetFunctions)
build_button (ButtonObject.button)