View Single Post
Old 12-11-12, 04:31 AM   #14
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
By way of followup... the two key elements of the nUI6 info panel system are the EnablePlugin and SetContainer. You aren't guaranteed the order they will be called in, but once you have both, then you are all set. At that point you know that the addons are loaded, variables are loaded, the nUI6 frames have all been created, etc. So you should be able to access everything you need without having to use a lot of event handling. (which was kind of my goal).

The only other significant function you have to worry about is the ResizePlugin -- that will get called if/when the user is customizing their layout. It shouldn't get called otherwise.

The SetConfig() method will get called during the "PLAYER_LOGIN" event as well... it is guaranteed to be called before the first call to EnablePlugin is made.

In theory, you shouldn't have to use an event handler at all.
__________________

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/
spiel2001 is offline