The only thing I wasn't able to replace was the Macro/Setting/Close button images, but maybe you can do that when you add this skin to the package.
Code: Select all
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('BuffOmat') then return end
function AS:BuffOmat()
local Buttons = {
BuffOmat_MainWindow_CloseButton,
BuffOmat_MainWindow_SettingsButton,
BuffOmat_MainWindow_MacroButton,
BuffOmat_ListTab_Button,
};
local Tabs = {
BuffOmat_MainWindowTab1,
BuffOmat_MainWindowTab2,
};
-- Skin elements
AS:SkinFrame(BuffOmat_MainWindow);
AS:SkinScrollBar(BuffOmat_SpellTab_ScrollScrollBar);
for _, Button in pairs(Buttons) do AS:SkinButton(Button); end
for _, Tab in pairs(Tabs) do AS:SkinFrame(Tab); end
-- Reposition Tabs to fit nicely underneath the MainWindow
local point, relTo, relPoint, xOfs, yOfs = BuffOmat_MainWindowTab1:GetPoint();
BuffOmat_MainWindowTab1:SetPoint(point, relTo, relPoint, xOfs, 1);
local point, relTo, relPoint, xOfs, yOfs = BuffOmat_MainWindowTab2:GetPoint();
BuffOmat_MainWindowTab2:SetPoint(point, relTo, relPoint, (xOfs+18), yOfs);
end
AS:RegisterSkin('BuffOmat', AS.BuffOmat)
Wollie