tullamods/Dominos — Issue #74: Masque Support (New Button Facade)
Author: Goranaws
Created: 2011-10-17 17:27:43+00:00
State: open

Since Masque now saves button skin info within itself, We can remove Button Facade stuff entirely, and replace it with :

function Dominos:Masque(group, button)
if LibStub("Masque", true) then
LibStub("Masque", true):Group('Dominos', group):AddButton(button)
return true
else
return nil
end
end

Then to add it to say the action buttons, just replace it's old skin function with:

function ActionButton:Skin()
if not Dominos:Masque('Action Bars', self) then
_G[self:GetName() .. 'Icon']:SetTexCoord(0.06, 0.94, 0.06, 0.94)
self:GetNormalTexture():SetVertexColor(1, 1, 1, 0.5)
end
end