ok. this is what i have. from what ive read/seen in other mods i personally think this should work. but alas it is not.
Code:
grifremove = CreateFrame("Frame")
function grifremove:Frame_OnLoad()
this:RegisterEvent("PLAYER_ENTERING_WORLD");
end
function grifremove:Frame_OnEvent(event)
if (event == "PLAYER_ENTERING_WORLD") then
MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()
end
end
i would really like to create a stand alone addon for this rather then piggy backing it into someone elses mod.
what am i doing wrong?