View Single Post
09-07-08, 03:19 PM   #16
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 109
My addons (because I just tend to copy each one from the last) still use the 'old fashioned' approach of creating a frame in the .XML file and registering events there

e.g.

Code:
   <Script file="OBI.lua"/> 
   <Frame name="OBI" visible="true" parent="UIParent"> 
      <Scripts> 
         <OnLoad>
            this:RegisterEvent("PLAYER_LOGIN"); 
         </OnLoad> 
         <OnEvent>
           if event == "PLAYER_LOGIN" then
             OBI_variablesloaded()
           end; 
         </OnEvent>
         <OnUpdate>
           OBI_update();
         </OnUpdate> 
      </Scripts> 
   </Frame>
Could this be part of the issue? Should I ditch the .XML files entirely (all my UI elements are created dynamically in the .LUA file)???
  Reply With Quote