Add /hidecoaui slash command to open the settings menu
This commit is contained in:
@@ -557,8 +557,14 @@ aboutTitle:SetText("About")
|
||||
|
||||
InterfaceOptions_AddCategory(aboutPanel)
|
||||
|
||||
local function OpenOptions()
|
||||
InterfaceOptionsFrame_OpenToCategory(classesPanel)
|
||||
end
|
||||
|
||||
HideCoAUI.OpenOptions = OpenOptions
|
||||
|
||||
-- Jump straight to the Classes subcategory when the HideCoAUI parent node itself is opened.
|
||||
panel:SetScript("OnShow", function(self)
|
||||
InterfaceOptionsFrame_OpenToCategory(classesPanel)
|
||||
OpenOptions()
|
||||
self:Hide()
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user