-
-
Notifications
You must be signed in to change notification settings - Fork 6
Developers: API
veechs edited this page Jan 4, 2025
·
4 revisions
Bagshui provides an API so other addons can extend its functionality. It's currently focused on rule functions, but could be expanded if other integrations would be useful.
Enables the creation of supplemental rule functions.
Informs the Bagshui inventory classes that some action needs to be taken.
Refer to comments in API.lua.
- Add Bagshui to the
OptionalDeps
section of your addon's TOC. - Verify Bagshui is available and register your rule function(s) during
ADDON_LOADED
(preferred) orPLAYER_LOGIN
:if IsAddOnLoaded("Bagshui") then -- Make your Bagshui:AddRuleFunction() call here. end
For a working example, refer to Bagshui-Tmog.