[Feature]: Add to compartment menu
SpareSimian opened this issue ยท 1 comments
Describe the feature
WoW recently added the "compartment" frame, a drop-down menu above and to the right of the minimap where addons should register a minimap button. It's a tiny rectangle with a number in it, indicating how many addons have registered in the menu. I propose that AdiBags register its options window here.
Describe the implementation
To the retail TOC file add the following lines:
## IconTexture: Interface\Icons\inv_misc_bag_08
## AddonCompartmentFunc: AdiBags_OnAddonCompartmentClick
In core.lua, add this function:
function AdiBags_OnAddonCompartmentClick()
return addon:OpenOptions('bags')
end
(I'm using the above patch successfully.)
More information here:
https://wowpedia.fandom.com/wiki/Addon_compartment
I don't think it's needed but I note that this library exists:
https://github.com/Meorawr/LibDBCompartment
Possible bag icons: https://www.wowhead.com/icons/name:bag
The new texture field in the TOC is also used for the addon enable/disable dialog. It can also be a custom graphic.