Quantcast
WoWInterface - View Single Post - How can i make this load with the game?
View Single Post
05-09-08, 11:14 PM   #9
Vayder
A Fallenroot Satyr
 
Vayder's Avatar
AddOn Compiler - Click to view compilations
Join Date: Jun 2005
Posts: 23
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?
  Reply With Quote