8.3.0 > 9.0.1
This commit is contained in:
+13
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user