BenikUI - The ElvUI Edit

BenikUI - The ElvUI Edit

5M Downloads

Broken with Baganator (reported to me by a Baganator user)

plusmouse opened this issue ยท 1 comments

commented

Replace the Baganator skinning code with the following to resolve the error. Basically it checks for Baganator having the ElvUI skin enabled, and then applies your function on top.

local function Baganator()
	if BUI:IsAddOnEnabled('Baganator') and E.db.benikui.general.benikuiStyle and E.db.benikui.skins.variousSkins.ba then
		_G["Baganator"].API.Skins.RegisterListener(function(details)
			if _details.regionType == "ButtonFrame" and G["Baganator"].API.Skins.GetCurrentSkin() == "elvui" then
				details.region:BuiStyle('Outside')
			end
		end)
		if _G["Baganator"].API.Skins.GetCurrentSkin() == "elvui" then
			for _, details in ipairs(_G["Baganator"].API.Skins.GetAllFrames()) do
				if details.regionType == "ButtonFrame" then
					details.region:BuiStyle('Outside')
				end
			end
		end
	end
end
commented

Thank you, it should be fixed now (moved the underscore on the 4th line to the _G part also)