phase 3 removing tbc

Drop the now-vestigial expansion plumbing.

- Delete modules/thirdparty-tbc.lua + its xml Include
- Strip 10 tbc-tagged CreateConfig calls in modules/gui.lua
- Drop the expansion arg from CreateConfig() signature + the disabled-
  entry rendering path that depended on it
- Drop the showdisabled GUI toggle + its default
- Simplify pfUI:RegisterModule / pfUI:RegisterSkin to (name, func) only
- Strip the leading version arg ("vanilla:tbc", etc.) from all 114
  Register call sites
- Delete the pfUI.expansion variable
This commit is contained in:
Brues
2026-05-25 18:50:53 -05:00
parent ba566cdd53
commit 710be52f35
118 changed files with 175 additions and 598 deletions
+3 -18
View File
@@ -81,10 +81,7 @@ end})
-- cache client version
local _, _, _, client = GetBuildInfo()
client = client or 11200
pfUI.expansion = "vanilla"
pfUI.client = client
pfUI.client = client or 11200
-- setup pfUI namespace
setmetatable(pfUI.env, {__index = getfenv(0)})
@@ -299,14 +296,8 @@ function pfUI:CheckNewModules()
end
end
function pfUI:RegisterModule(name, a2, a3)
function pfUI:RegisterModule(name, func)
if pfUI.module[name] then return end
local hasv = type(a2) == "string"
local func, version = hasv and a3 or a2, hasv and a2 or "vanilla:tbc:wotlk"
-- check for client compatibility
if not strfind(version, pfUI.expansion) then return end
pfUI.module[name] = func
table.insert(pfUI.modules, name)
if not pfUI.bootup then
@@ -314,14 +305,8 @@ function pfUI:RegisterModule(name, a2, a3)
end
end
function pfUI:RegisterSkin(name, a2, a3)
function pfUI:RegisterSkin(name, func)
if pfUI.skin[name] then return end
local hasv = type(a2) == "string"
local func, version = hasv and a3 or a2, hasv and a2 or "vanilla:tbc:wotlk"
-- check for client compatibility
if not strfind(version, pfUI.expansion) then return end
pfUI.skin[name] = func
table.insert(pfUI.skins, name)
if not pfUI.bootup then