fix(p2): restore plugin status UI, C_QuestLog/C_Map shims, QuestieServer init
- QuestieOptionsAdvanced.lua: restore compat_header, plugin_header, plugin_status_desc blocks showing loaded Questie-X plugins with stats in the Advanced options tab - QuestieCompat.lua: add C_QuestLog shim (GetNumQuestLogEntries, GetQuestLogTitle, GetAllQuestIDs, GetQuestObjectives, IsQuestFlaggedCompleted, GetQuestPlayerQuestLink), C_Map shim (GetPlayerMapPosition, GetBestMapForUnit, GetMapInfo), GetTrackedAchievements, IsAchievementCompleted, and LibUIDropDownMenu shims - QuestieInit.lua: import QuestieServer module, add QuestieServer:Init() call with nil guard, wrap HBDHooks:Init() in nil guard
This commit is contained in:
@@ -414,6 +414,44 @@ function QuestieOptions.tabs.advanced:Initialize()
|
||||
end
|
||||
end,
|
||||
},
|
||||
compat_header = {
|
||||
type = "header",
|
||||
order = 6,
|
||||
name = l10n('3.3.5 Compatibility Settings'),
|
||||
},
|
||||
plugin_header = {
|
||||
type = "header",
|
||||
order = 7,
|
||||
name = "|cFF5EBAF3Loaded Questie-X Plugins|r",
|
||||
},
|
||||
plugin_status_desc = {
|
||||
type = "description",
|
||||
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
|
||||
output = output .. "|cFF5EBAF3[Questie-" .. pluginName .. "]|r"
|
||||
output = output .. " Quests: |cFFFFD700" .. tostring(plugin.stats.QUEST) .. "|r"
|
||||
output = output .. " NPCs: |cFFFFD700" .. tostring(plugin.stats.NPC) .. "|r"
|
||||
output = output .. " Objects: |cFFFFD700" .. tostring(plugin.stats.OBJECT) .. "|r"
|
||||
output = output .. " Items: |cFFFFD700" .. tostring(plugin.stats.ITEM) .. "|r\n"
|
||||
end
|
||||
|
||||
if not hasPlugins then
|
||||
output = "|cFF888888No plugins loaded.|r"
|
||||
end
|
||||
|
||||
return output
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user