Poster: Myrddraall at 8/19/2005 8:21:24 PM PDT Subject: Slouken: Clairification on LUA only addons |
| |
I attempted to make a lua only addon today but was unable to determine the entry point for my scrip.
The OnLoad did not execute.
Is the a point of entry for this or are Lua only addons intended to only provide functions for other addons to call?
Brought to you by the letter "J" and the number "420"
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=202035&p=#post202035 |
| |
Poster: slouken at 8/19/2005 9:47:10 PM PDT Subject: Re: Slouken: Clairification on LUA only addon |
| |
Your lua file is executed itself on load. This means that if your only line is:
message("Hello World!")
When the UI loads, you'll probably see a dialog box. :)
So, you ask, what is this useful for?
The answer is... not much. It's useful if you want to override existing functions in the base UI, or want to set some variables to specific values when you have everything you need to know at load time. What this comes in handy most for is addons that have an XML for UI and event handling, and then a few Lua files that work together; maybe a set of localized strings, or a collection of utility functions.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=202035&p=#post202075 |