Quantcast How to open addon interface options? - WoWInterface
Thread Tools Display Modes
05-27-19, 01:40 AM   #1
MinguasBeef
A Murloc Raider
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 8
How to open addon interface options?

Edit: Shortly after making this post I found the answer. For anyone searching for the same thing, you just need to call
Code:
InterfaceOptionsFrame_OpenToCategory("ADDON NAME")
I made a panel and some options in the interface addon menu for my addon.

I can hit escape and access the addons menu from there, but I wanted to add a slash command to open up the menu automatically.

I've done this a long time ago and I forgot how I accomplished this. How would I open up the interface addon window and select a specific panel with LUA?

Last edited by MinguasBeef : 05-27-19 at 01:47 AM.
  Reply With Quote
05-27-19, 10:03 AM   #2
jeruku
A Chromatic Dragonspawn
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 194
Quick note, there has been a long standing bug(?) that prevents that code from always opening to the addon. The work around I use is first calling InterfaceOptionsFrame_Show before opening the category.

Lua Code:
  1. InterfaceOptionsFrame_Show()
  2. InterfaceOptionsFrame_OpenToCategory("ADDON NAME")
__________________
"I have not failed, I simply found 10,000 ways that did not work." - Thomas Edison
  Reply With Quote
05-30-19, 12:37 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,598
Or you can just open to the category twice.

This usually happens if your addon is not visible in the scrollframe list on the left.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to open addon interface options?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off