Originally Posted by
Kaitain
With my (lack of) knowledge of coding, I think it would be pretty hard to make it support more than one raid frame addon. I think you could use vuhdo and still have Grid enabled by setting all the grid profiles to show nothing in any grp type (i.e. set everything to None in the Layout tab of Grid config), then just have vuhdo running. I guess it depends on whether Grid uses any CPU when it's not displaying anything...
Code:
if IsAddOnLoaded("Grid") then
-- insert your grid setup code here
elseif IsAddOnLoaded("Vuhdo") then
-- insert your vuhdo setup code here
end
here's something a bit more thorough...
Code:
local addonCheck = CreateFrame("Frame")
addonCheck:RegisterEvent("ADDON_LOADED")
addonCheck:SetScript("OnEvent", function(self, event, ...)
if (... == "Grid") then
-- setup grid here
elseif (... == "Vuhdo") then
-- setup vuhdo here
else
self:UnregisterEvent("ADDON_LOADED")
end
end)