Dominos

Dominos

19M Downloads

Masque Support (New Button Facade)

Goranaws opened this issue ยท 3 comments

commented

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

commented

Is masque out of alpha/beta yet?

Jason

On Oct 17, 2011, at 1:27 PM, Goranaws
[email protected]
wrote:

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

Reply to this email directly or view it on GitHub:
#74

commented

Support should now be implemented. Additionally, the totem bar has its own proper group now.