Loading...

Buff'o'mat AddonSkin submission

1
I've made a AddOnSkin for Buff'o'mat.
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)
Regards,
Wollie

Buff'o'mat AddonSkin submission

7
Here's a BuffomatClassic version:

Code: Select all

local AS = unpack(AddOnSkins)

if not AS:CheckAddOn('BuffomatClassic') then return end

function AS:BuffomatClassic()
	
	local Buttons = {
		BomC_MainWindow_CloseButton,
		BomC_MainWindow_SettingsButton,
		BomC_MainWindow_MacroButton,
		BomC_ListTab_Button,
	};
	
	local Tabs = {
		BomC_MainWindowTab1,
		BomC_MainWindowTab2,
	};
	
	-- Skin elements
	for _, Button in pairs(Buttons) do AS:SkinButton(Button); end
	for _, Tab in pairs(Tabs) do AS:SkinFrame(Tab);	end
	AS:SkinFrame(BomC_MainWindow);
	AS:SkinScrollBar(BomC_SpellTab_ScrollScrollBar);

	-- Reposition Tabs to fit nicely underneath the MainWindow
	local point, relTo, relPoint, xOfs, yOfs = BomC_MainWindowTab1:GetPoint();
	BomC_MainWindowTab1:SetPoint(point, relTo, relPoint, xOfs, 1);
	local point, relTo, relPoint, xOfs, yOfs = BomC_MainWindowTab2:GetPoint();
	BomC_MainWindowTab2:SetPoint(point, relTo, relPoint, (xOfs+18), yOfs);
end

AS:RegisterSkin('BuffomatClassic', AS.BuffomatClassic)
Save it in \Interface\AddOns\AddOnSkins\Skins\AddOns\Classic\BuffOmatClassic.lua

And add:

Code: Select all

<Script file="BuffOmatClassic.lua"/>
to Load_Skins.xml in the same directory.
Then start your wow client, done.