Well, this won't work:
Code:
addonFuncs["Bagnon"] = function()
hooksecurefunc(Bagnon, "CreateFrame", function(Bagnon, id)
frame:CreateBorder(13,20,20,20, 2)
end)
end
... because you left out the part that defines the
frame variable.
As for the other part, try adding some
print statements so you can see what's going on:
Code:
addonFuncs["XLoot_Frame"] = function()
print("addonFuncs: XLoot_Frame")
XLootFrame:AddBorder(50,20,20,20, 2)
end
Code:
if IsAddOnLoaded(addon) then
-- Run the function now:
print(addon, "already loaded, running now...")
func()
Code:
eventFrame:SetScript("OnEvent", function(self, event, addon)
local func = addonFuncs[addon]
if func then
print(addon, "just loaded, running now...")
func()
And make sure you're running
BugSack. The default error display is turned off by default, and is useless for development anyway, since it can't show errors that happen during the initial loading process, but that's where most errors happen during development.
(Also fixed the missing /code tag in my last post, so if you re-copy you'll have correctly indented code.)