Is there a finite number, or maximum allowed to be embedded? I am wondering if there is something wrong in my code I haven't spotted that the library I am writing isn't working, or if AceAddon has reached its limit.
local MyAddOn = LibStub("AceAddon-3.0"):NewAddon("MyAddOn", "AceConsole-3.0", "AceEvent-3.0", "LibOne-1.0", "LibTwo-2.0")
No, I was using it to illustrate, and see if that was my issue. Process of elimination. Here is my actual code.
Error code:
2x MyrroUI\MyrroUI-@project-version@.lua:1: Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Cannot find a library instance of "LibAboutPanel-2.0".
[C]:: ?
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:220: in function 'EmbedLibrary'
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:202: in function 'EmbedLibraries'
Ace3\AceAddon-3.0\AceAddon-3.0-12.lua:169: in function 'NewAddon'
MyrroUI\MyrroUI-@project-version@.lua:1: in main chunk
Yes, I am rewriting LibAboutPanel, and didn't want to commit to the existing repo because of possible breaking changes. It is not finished, but there should be enough there to load and test.
How's your re-write of it coming along? Is it available?
I was just trying to use the original along with AceConfigDialog and couldn't seem to connect the two? LibAboutPanel requires the parent as a frame object, but the frame doesn't seem to get named specifically by AceConfigDialog from what /fstack is telling me.
How's your re-write of it coming along? Is it available?
I was just trying to use the original along with AceConfigDialog and couldn't seem to connect the two? LibAboutPanel requires the parent as a frame object, but the frame doesn't seem to get named specifically by AceConfigDialog from what /fstack is telling me.
It is coming along. There are minor bugs left, like displaying the localization string from GetAddOnMetadata() which I have gsub'ed to use Blizzard's global strings.
Most of LibAboutPanel-2.0 is working; I need to test the "Ackis version" function, and iron out some stuff in the AceConfig-based function.
So no, it is not available yet, but it is very close. And you are correct in that Ackis' LibAboutPanel will not work with AceConfig option tables. But my version does.
Error code:
MyrroUI main chunk: http://www.wowace.com/paste/15311/
Yes, I am rewriting LibAboutPanel, and didn't want to commit to the existing repo because of possible breaking changes. It is not finished, but there should be enough there to load and test.
LibAboutPanel-2.0 ToC: http://www.wowace.com/paste/15312/
lib.xml:
LibAboutPanel-2.0 main chunk: http://www.wowace.com/paste/15313/
Yeah, with prodding to jump start my brain, I figured out that I had a typo in my ## OptionalDeps line in MyrroUI.toc.
But I did learn that there are no apparent limits to the number of embedded libraries.
I was just trying to use the original along with AceConfigDialog and couldn't seem to connect the two? LibAboutPanel requires the parent as a frame object, but the frame doesn't seem to get named specifically by AceConfigDialog from what /fstack is telling me.
It is coming along. There are minor bugs left, like displaying the localization string from GetAddOnMetadata() which I have gsub'ed to use Blizzard's global strings.
Most of LibAboutPanel-2.0 is working; I need to test the "Ackis version" function, and iron out some stuff in the AceConfig-based function.
So no, it is not available yet, but it is very close. And you are correct in that Ackis' LibAboutPanel will not work with AceConfig option tables. But my version does.
I don't know what this means. I'm using it in my options tables just fine.
All I ever could get LibAboutPanel to do is either have no parent and exist in the AddOns listing, or as it's own [+] under a parent AddOn.
Neither of those is within the options table for AceConfig.