GladiatorlosSA2

GladiatorlosSA2

5M Downloads

shortcut command issue

ado21 opened this issue ยท 0 comments

commented

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.