mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-16 16:10:46 +00:00
Keep the DLL features with no ClassicAPI equivalent and move the rest onto ClassicAPI: - Nampower: spell queue indicator, swing timer queue colors, Steady Shot cast bar, one-press totem sets, /disenchantall, feign death health - UnitXP_SP3: behind indicator (now in target.lua) and the precise range check mode - SuperWoW: group tracking on the minimap - Target distance moves to UnitDistanceSquared, OS notifications to FlashClientIcon (now a global setting that fires on BG queue pops, not on opening the battlemaster), /pfcast and /castfocus to C_Spell.CastAtUnit - The reactive spell indicator gets its own module and an event (ACTIONBAR_UPDATE_USABLE); its OnUpdate sat on a hidden frame and never ran - /pfdll moves to its own module and reports UnitXP too Drop /clickthrough, /pfunitxp, the SuperWoW combat text GUID hook (SuperWoW 2.2 already swaps combat log GUIDs for names), the old SuperWoW enchant link shim, the uncalled distance/targeting/mark helpers and the config keys nothing read.
21 lines
847 B
Lua
21 lines
847 B
Lua
-- /pfdll: which client DLLs pfUI can use
|
|
pfUI:RegisterModule("dllstatus", function ()
|
|
local function Report(name, version, detected)
|
|
if version then
|
|
DEFAULT_CHAT_FRAME:AddMessage(" |cff00ff00" .. name .. "|r: v" .. tostring(version))
|
|
elseif detected then
|
|
DEFAULT_CHAT_FRAME:AddMessage(" |cff00ff00" .. name .. "|r: Detected")
|
|
else
|
|
DEFAULT_CHAT_FRAME:AddMessage(" |cffff0000" .. name .. "|r: Not detected")
|
|
end
|
|
end
|
|
|
|
pfUI.api.RegisterSlashCommand("PFDLLSTATUS", { "/pfdll" }, function()
|
|
DEFAULT_CHAT_FRAME:AddMessage("|cff33ffccpfUI|r: DLL Status Check")
|
|
Report("ClassicAPI", CLASSIC_API_VERSION)
|
|
Report("Nampower", GetNampowerVersion and GetNampowerVersion())
|
|
Report("SuperWoW", SUPERWOW_VERSION)
|
|
Report("UnitXP_SP3", nil, _G.UnitXP and pcall(UnitXP, "nop", "nop"))
|
|
end, true)
|
|
end)
|