Rhykes / GladiatorlosSA2

World of Warcraft PvP spell announcer addon.
8 stars 6 forks source link

shortcut command issue #30

Open ado21 opened 1 month ago

ado21 commented 1 month ago

This will maybe make it easier for you to make commands work. Here is reason why it does not work if you have not figured that by urself by now.

This is your way of calling interface panel (copy paste from ur code): for i=1,2 do InterfaceOptionsFrame_OpenToCategory(GetAddOnMetadata("GladiatorlosSA2", "Title")) end -- ugly fix

InterfaceOptionsFrame_OpenToCategory() is deprecated. Instead of this you should use:

--register new panel in interface window --panel = your frame registred for addon for example --> local panel = CreateFrame("Frame") --panel.name = name of your addon shown in interface options --> panel.name = "AddonName"

local category = Settings.RegisterCanvasLayoutCategory(panel, panel.name)
Settings.RegisterAddOnCategory(category);

--command to open specific addon page via whatever command you pick Settings.OpenToCategory(category:GetID())

However I am not familiar with Ace3.0 libs so I couldnt find a way to open it properly only directly to your configuration window completely skipping "credits" page.