LibAboutPanel-2.0
LibAboutPanel-2.0
LibAboutPanel-2.0 is a World of Warcraft Lua library for displaying addon metadata in Blizzard's Settings UI or as an AceConfig-3.0-compatible options table. It works with all valid WoW clients.
Requirements
- Required: LibStub
- Optional: AceConfig-3.0, if using
:AboutOptionsTable()
Quick Usage
For Ace3 addons, embed LibAboutPanel-2.0 when creating your addon object:
local MyAddon = LibStub("AceAddon-3.0"):NewAddon("MyAddon", "LibAboutPanel-2.0")
For non-Ace3 addons, embed the library into your addon object:
LibStub("LibAboutPanel-2.0"):Embed(MyAddon)
Or use it directly:
local LAP = LibStub("LibAboutPanel-2.0")
Create a Blizzard Settings About panel:
MyAddon:CreateAboutPanel("MyAddon")
-- or
LAP:CreateAboutPanel("MyAddon")
Create an AceConfig-3.0-compatible About options table:
options.args.about = MyAddon:AboutOptionsTable("MyAddon")
AboutOptionsTable() only returns the table. Your addon is responsible for registering it with AceConfig-3.0 or embedding it in an existing options table.
Documentation
See WIKI.md for:
.pkgmetaintegration- Ace3 example usage
- API reference
- Supported
.tocfields - Category and localization notes
- Troubleshooting
Contributing
- Help translate or verify localization at CurseForge
- Report bugs or request improvements via the GitHub issue tracker
-
View User Profile
-
Send Message
Posted Jul 26, 2024Hello!
One of my addon users reported this error. I've tried looking to see if this code was renamed or something but haven't found anything yet. Hoping that this error message helps!
Message: ...omAudio/Libs/LibAboutPanel-2.0/LibAboutPanel-2.0.lua:495: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
Time: Fri Jul 26 22:39:22 2024
Count: 1
Stack: ...omAudio/Libs/LibAboutPanel-2.0/LibAboutPanel-2.0.lua:495: attempt to call global 'InterfaceOptions_AddCategory' (a nil value)
[string "@Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[string "@Interface/AddOns/ElvUI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua"]:619: in function <...UI_Libraries/Core/Ace3/AceAddon-3.0/AceAddon-3.0.lua:611>
Locals: self = <table> {
initializequeue = <table> {
}
statuses = <table> {
}
embeds = <table> {
}
frame = AceAddon30Frame {
}
addons = <table> {
}
enablequeue = <table> {
}
}
addon = <table> {
modules = <table> {
}
defaultModuleLibraries = <table> {
}
name = "RareScanner"
orderedModules = <table> {
}
db = <table> {
}
baseName = "RareScanner"
enabledState = true
defaultModuleState = true
}
-
View User Profile
-
Send Message
Posted Aug 5, 2024In reply to SweetsourGamer: Thank you for the bug report. I didn't see it because my notifications are for GitHub. I created an issue report and will fix the deprecated API. https://github.com/Myrroddin/libaboutpanel-2.0/issues/1
-
View User Profile
-
Send Message
Posted Aug 6, 2024In reply to Sygon_Paul: Perfect, thank you! I'm the author of the addon and will push the latest version out! I'll also be sure to use your github for any bugs in the future. :)
-
View User Profile
-
Send Message
Posted Aug 9, 2024In reply to SweetsourGamer: Sorry for the late reply. Have you updated your pkgmeta to use the new method to get LibAboutPanel-2.0's repository? The old method works, but adds extra files to your addon which aren't needed. See the main description for details.
-
View User Profile
-
Send Message
Posted Aug 5, 2024In reply to SweetsourGamer: Please tell the author of "...omAudio" to push an updated zip. I cannot read the full name of the addon. The fix is in LibAboutPanel-2.0 version 1.0.71.
-
View User Profile
-
Send Message
Posted Nov 5, 2023Not sure how you managed this; but within the addon; inside "LibAboutPanel-2.0" > "LibStub" -- there are two "LibStub.lua" files.
Which one is needed?
-
View User Profile
-
Send Message
Posted Nov 7, 2023In reply to JDM12983: I'll check on that. There should only be one. EDIT: I looked at a couple of addons I wrote, and see one copy of LibStub. Which addon are looking at?
-
View User Profile
-
Send Message
Posted May 20, 2017Is this ready to be embedded in other addon?
-
View User Profile
-
Send Message
Posted Oct 8, 2019In reply to arithmandar:
Better late than never. I put it in beta October 8, 2019