Created
April 9, 2010 03:26
-
-
Save tekkub/360869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local myname = ... | |
| local f = CreateFrame("Frame") | |
| f:RegisterEvent("ADDON_LOADED") | |
| f:SetScript("OnEvent", function(self, event, addon, ...) | |
| print(myname, event, addon, ...) | |
| if myname == addon then LoadAddOn("Addon2") end | |
| end) | |
| print(myname, "loaded") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Interface: 30300 | |
| ## Title: Addon1 | |
| Addon1.lua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local myname = ... | |
| local f = CreateFrame("Frame") | |
| f:RegisterEvent("ADDON_LOADED") | |
| f:SetScript("OnEvent", function(self, event, addon, ...) print(myname, event, addon, ...) end) | |
| print(myname, "loaded") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Interface: 30300 | |
| ## Title: Addon2 | |
| ## LoadOnDemand: true | |
| ## LoadsWith: Addon1 | |
| Addon2.lua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Addon1 loaded | |
| Addon1 ADDON_LOADED Addon1 | |
| Addon2 loaded | |
| Addon1 ADDON_LOADED Addon2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment