WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to bring up the addon list interface? (https://www.wowinterface.com/forums/showthread.php?t=59600)

odrik 05-30-23 10:21 PM

How to bring up the addon list interface?
 
So I had InterfaceOptionsFrame_OpenToCategory("AddOns") ... it brings up add ons that you can make changes to ... what i want is the window that comes up when you press esc and and click Add Ons ... which brings up AddOnList ... so i tried InterfaceOptionsFrame_OpenToCategory("AddOnList") ... however that still brings up the other window =/
Any ideas?

Fizzlemizz 05-30-23 10:33 PM

The function with an addon (name/setting table) passed is primarily to open the addon settings to a particular addon.

You could:
Lua Code:
  1. Settings.OpenToCategory()
  2. SettingsPanel.AddOnsTab:Click()

To open the menu and click the AddOns tab to set focus to it.

InterfaceOptionsFrame_OpenToCategory has been deprecated and replaced by Settings.OpenToCategory.

SDPhantom 05-31-23 12:33 AM

Quote:

Originally Posted by odrik (Post 342510)
what i want is the window that comes up when you press esc and and click Add Ons ... which brings up AddOnList

The frame you're after is simply called AddonList. The game opens it by calling ShowUIPanel(AddonList). Be aware that calling ShowUIPanel() causes protected actions that will be blocked while in combat. You may get around this by calling AddonList:Show() directly, but it bypasses UIParent's window management code, which may cause issues with other managed windows.


All times are GMT -6. The time now is 06:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI