View Single Post
12-11-12, 05:11 AM   #13
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/