fix: move plugin panel to Database tab + fix WotLKDB 0 counts

- QuestieOptionsDatabase: added 'Loaded Questie-X Plugins' section at order 7
  For pull-type plugins (WotLKDB) where plugin.stats are all 0, the panel now
  falls back to counting QuestieDB.*Data directly — this is safe because the
  name function is called after init completes (user opens the options panel)
- QuestieOptionsAdvanced: replaced full plugin panel with redirect note
  pointing users to the Database tab
This commit is contained in:
Xurkon
2026-03-16 21:27:15 -05:00
parent 893d013110
commit 4e5f3ed04b
2 changed files with 69 additions and 22 deletions
@@ -429,28 +429,7 @@ function QuestieOptions.tabs.advanced:Initialize()
order = 7.01,
fontSize = "medium",
name = function()
if not QuestiePluginAPI or not QuestiePluginAPI.registeredPlugins then
return "|cFF888888Plugin API not loaded.|r"
end
local output = ""
local hasPlugins = false
for pluginName, plugin in pairs(QuestiePluginAPI.registeredPlugins) do
hasPlugins = true
local stats = plugin.stats or {}
output = output .. "|cFF5EBAF3[Questie-" .. pluginName .. "]|r"
output = output .. " Quests: |cFFFFD700" .. tostring(stats.QUEST or 0) .. "|r"
output = output .. " NPCs: |cFFFFD700" .. tostring(stats.NPC or 0) .. "|r"
output = output .. " Objects: |cFFFFD700" .. tostring(stats.OBJECT or 0) .. "|r"
output = output .. " Items: |cFFFFD700" .. tostring(stats.ITEM or 0) .. "|r\n"
end
if not hasPlugins then
output = "|cFF888888No plugins loaded.|r"
end
return output
return "|cFF888888Plugin stats have moved to the |r|cFFFFFFFFDatabase|r|cFF888888 tab.|r"
end,
},
},