Files
pfUI/modules/dllstatus.lua
Brues c18b0eafcd Trim DLL integrations to what ClassicAPI doesn't cover
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.
2026-11-15 21:28:58 -06:00

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)