View Single Post
10-16-22, 06:18 PM   #9
sirpucna
An Aku'mai Servant
Join Date: Nov 2016
Posts: 34
Originally Posted by Zax View Post
Code:
InterfaceOptionsFrame:Show()
This raises an error on PTR.

Code:
InterfaceOptionsFrame_OpenToCategory("YourAddonName")
This is deprecated, according to https://github.com/Gethe/wow-ui-sour...recated.lua#L4
ahh InterfaceOptionsFrame:Show() did indeed throw a error, swear it didn't in beta last week, but regarding beta(not ptr), the following was tested working just now.
Code:
	CreateFrame("Frame", "OptionsPanel")
	OptionsPanel.name = "YourAddon"
	InterfaceOptions_AddCategory(OptionsPanel)
	SlashCmdList["ABCSlash"] = function()
		InterfaceOptionsFrame_OpenToCategory("YourAddon")
	end
	SLASH_ABCSlash1 = "/abc"

Last edited by sirpucna : 10-16-22 at 06:20 PM.
  Reply With Quote