View Single Post
04-06-22, 02:47 PM   #3
cosmic_kid
A Murloc Raider
Join Date: Oct 2021
Posts: 9
Wow, that fixed it. Thank you!

Can you add any information as to why this was breaking my script? Like is the "OnLoad" script of AddonParent not even getting called if it's not defined in XML?

I tried to do this with XML at first, but I kept getting an error like "method AddonParent_OnLoad not found in element OnLoad" for an XML like this.

Code:
<Ui>
    <Script file="Addon.lua"/>
    <Frame name="AddonParent">
        <Scripts>
            <OnLoad method="AddonParent_OnLoad"/>
        </Scripts>
    </Frame>
</Ui>
Addon.lua
Lua Code:
  1. function AddonParent_OnLoad(self)
  2.     ...
  3. end

Last edited by cosmic_kid : 04-06-22 at 02:50 PM.
  Reply With Quote