The trick to using OnEvent stuff is to make the InfoPanelPlugin a frame instead of an empty table. You can then assign events to that frame.
The EnablePlugin is, itself, event driven. It doesn't get called until the "PLAYER_LOGIN" event fires. So you can do anything else you want to do in your own event handlers before then. That said, technically, you shouldn't move things around until you get that call to EnablePlugin since we don't know if the user has turned your plugin off.
|