All skins in AddOnSkins are Priority 1 by default.
Add to using priority system.
Code: Select all
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('BuyEmAll') then return end
function AS:BuyEmAllColor()
BuyEmAllFrame:SetBackdropColor(1, 1, 1, .16)
end
AS:RegisterSkin('BuyEmAll', AS.BuyEmAllColor, 2, '[AddonLoader]')
Removing: (While frowned upon. It's possible.)
Code: Select all
if AddOnSkins then
AddOnSkins[1]:UnregisterSkin('BuyEmAll')
end
Replace:
Code: Select all
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('BuyEmAll') then return end
function AS:BuyEmAllColor()
BuyEmAllFrame:SetBackdropColor(1, 1, 1, .16)
end