yes it works. Thank you very much
As I understand it, this part of the code in the “panel” answers: the panel will open through the minimap icon yes/no? Right?
Lua Code:
addon.category = Settings.RegisterCanvasLayoutCategory(panel, addonName)
Settings.RegisterAddOnCategory(addon.category)
Is this part of the code in the “minimap icon” code?
Lua Code:
OnClick = function(_, button)
if button == "LeftButton" then
Settings.OpenToCategory(addon.category:GetID()) -- Open or close the options panel
end
end,
Can I add these parts to my other addon and everything will work there too? Or am I missing something?