Thread: KGPanels script
View Single Post
11-11-14, 03:27 AM   #34
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You should be getting errors from those scripts.

In your OnLoad, you have this:
Code:
if oEvents[event] then
    -- stuff
else
    -- stuff
end
You don't have anything named "oEvents" anymore, and there's no variable named "event" in an OnLoad script. I don't think you want to hide anything at login, since none of the the bank, guild, or gossip frames are open at login, so you should just remove that part. You only need to define the table OnLoad.

Then in your OnEvent you have:
Code:
if self.openEvents[event] then
 
if oEvents[event] then
Again, you don't have anything named "oEvents" anymore, and now you have more "if"s than "else/end"s. Delete the second line.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote