View Single Post
04-06-22, 03:13 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,879
The method attribute is used if the script is a method of the frame (usually added to the frame via a mixin attribute included in the <Frame ...> tag).

Because your function is a global (and so long as the .lua file is listed in the .toc before the xml file) you would just call the function:

Lua Code:
  1. <Scripts>
  2.     <OnLoad>
  3.         AddonParent_OnLoad()
  4.     </OnLoad>
  5. </Scripts>
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote