From e4832c574fdf831b93d99c6453db64d71f75c33d Mon Sep 17 00:00:00 2001 From: Moorea Tv Date: Thu, 25 Jul 2024 13:44:54 -0700 Subject: [PATCH] Fixes/changes for retail 11.0.0 (including new supporting MoLib v14) --- NeatMinimap/.luacheckrc | 3 --- NeatMinimap/NeatMinimap-Mainline.toc | 2 +- NeatMinimap/NeatMinimap.lua | 6 ++---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/NeatMinimap/.luacheckrc b/NeatMinimap/.luacheckrc index bc60455..639bd2e 100644 --- a/NeatMinimap/.luacheckrc +++ b/NeatMinimap/.luacheckrc @@ -1,9 +1,6 @@ globals = { "NeatMinimapSaved", "CreateFrame", - "InterfaceOptions_AddCategory", - "InterfaceOptionsFrame", - "InterfaceOptionsFrame_OpenToCategory", "SlashCmdList", "SLASH_NeatMinimap_Slash_Command1", "geterrorhandler", diff --git a/NeatMinimap/NeatMinimap-Mainline.toc b/NeatMinimap/NeatMinimap-Mainline.toc index 3b407bf..b881bb8 100644 --- a/NeatMinimap/NeatMinimap-Mainline.toc +++ b/NeatMinimap/NeatMinimap-Mainline.toc @@ -1,4 +1,4 @@ -## Interface: 100207 +## Interface: 110000 ## Title: Neat Minimap ## Notes: Neat Minimap auto hides/shows buttons and clutter as needed (|cFF99E5FF/nmm|r) ## Notes: Shadowlands Eternity's End edition diff --git a/NeatMinimap/NeatMinimap.lua b/NeatMinimap/NeatMinimap.lua index 44519eb..a826f70 100644 --- a/NeatMinimap/NeatMinimap.lua +++ b/NeatMinimap/NeatMinimap.lua @@ -307,9 +307,7 @@ function NMM.Slash(arg) -- can't be a : because used directly as slash command " (@project-abbreviated-hash@) by MooreaTv (moorea@ymail.com)") elseif cmd == "c" then -- Show config panel - -- InterfaceOptionsList_DisplayPanel(NMM.optionsPanel) - InterfaceOptionsFrame:Show() -- onshow will clear the category if not already displayed - InterfaceOptionsFrame_OpenToCategory(NMM.optionsPanel) -- gets our name selected + NMM:ShowConfigPanel(NMM.optionsPanel) elseif NMM:StartsWith(arg, "debug") then -- debug if rest == "on" then @@ -454,7 +452,7 @@ function NMM:CreateOptionsPanel() end end -- Add the panel to the Interface Options - InterfaceOptions_AddCategory(NMM.optionsPanel) + NMM:ConfigPanel(NMM.optionsPanel) end -- NMM.debug = 2