cdmichaelb / Outfitter

Outfitter - Classic
MIT License
10 stars 23 forks source link

Masque Support? #50

Closed Rootkit- closed 2 years ago

Rootkit- commented 3 years ago

Is it just me or does masque not work?

cdmichaelb commented 3 years ago

It likely doesn't. I believe masque has to specifically support addons.

pareidolie commented 3 years ago

I played around a bit with Masque. This seems to skin the buttons of the Outfit bar. Maybe someone can do something useful with it.

local Addon = Outfitter
local Masque = LibStub('Masque')

local bars = {OutfitterOutfitBar1, OutfitterOutfitBar2}

for _, bar in ipairs(bars) do
   local group = Masque:Group("Outfitter", bar.Name)
   local buttons = bar.NumColumns

   for i = 0, buttons - 1 do
      local button = _G[bar.Name .. "Button" .. i]
      group:AddButton(button)
   end
end