Loading...

Buff'o'mat AddonSkin submission

1
Here's an AddOnSkin for BuffOMatClassic. I've provided Classic Era and Classic TBC versions.

Classic Era 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)
Classic TBC version:

Code: Select all

local AS = unpack(AddOnSkins)

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

function AS:BuffomatClassicTBC()
	
	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('BuffomatClassicTBC', AS.BuffomatClassicTBC)
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.

Regards,
Wollie
Last edited by Wollie on Wed May 19, 2021 3:52 pm, edited 3 times in total.

Buff'o'mat AddonSkin submission

9
dirtyotto wrote: Thu May 06, 2021 11:21 am Hi there and thank you for the skin !
It seems that it doesn't work anymore with the last update, is it possible to do something ? I already love you <3
Hi, thanks!
The top version works on the original BOM addon. This version was discontinued and BuffomatClassic was born.
The last post contains code that works on the latest BuffomatClassic (just tested on version 2021.5.1-3 and works fine)