View Single Post
04-13-24, 07:00 AM   #20
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 122
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:
  1. addon.category = Settings.RegisterCanvasLayoutCategory(panel, addonName)
  2.     Settings.RegisterAddOnCategory(addon.category)
Is this part of the code in the “minimap icon” code?
Lua Code:
  1. OnClick = function(_, button)
  2.             if button == "LeftButton" then
  3.                 Settings.OpenToCategory(addon.category:GetID()) -- Open or close the options panel
  4.             end
  5.         end,
Can I add these parts to my other addon and everything will work there too? Or am I missing something?
  Reply With Quote