Files
Brues 710be52f35 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
2026-05-25 18:50:53 -05:00

63 lines
2.3 KiB
Lua

pfUI:RegisterModule("group", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
-- hide blizzard group frames
local frame
for i=1, 4 do
frame = _G[string.format("PartyMemberFrame%d", i)]
if frame then
frame:Hide()
frame:UnregisterAllEvents()
frame.Show = function () return end
end
end
pfUI.uf.group = {}
function pfUI.uf.group:UpdateConfig()
local startid = C.unitframes.selfingroup == "1" and 0 or 1
local spacing = C.unitframes.group.pspace
local rawborder, default_border = GetBorderSize("unitframes")
for i=0, 4 do
local active = i >= 1 or startid == 0
if active then
pfUI.uf.group[i] = pfUI.uf.group[i] or pfUI.uf:CreateUnitFrame("Party", i, C.unitframes.group)
pfUI.uf.group[i]:UpdateFrameSize()
pfUI.uf.group[i]:SetPoint("TOPLEFT", 5, -5 - ((i-startid)*75))
pfUI.uf.group[i]:UpdateConfig()
UpdateMovable(pfUI.uf.group[i])
elseif pfUI.uf.group[i] then
pfUI.uf.group[i]:UpdateConfig()
RemoveMovable(pfUI.uf.group[i])
end
if C.unitframes.grouptarget.visible == "1" and active then
pfUI.uf.group[i].target = pfUI.uf.group[i].target or pfUI.uf:CreateUnitFrame("Party" .. i .. "Target", nil, C.unitframes.grouptarget, 0.2)
pfUI.uf.group[i].target:UpdateFrameSize()
pfUI.uf.group[i].target:SetPoint("TOPLEFT", pfUI.uf.group[i], "TOPRIGHT", 3*default_border, 0)
pfUI.uf.group[i].target:UpdateConfig()
UpdateMovable(pfUI.uf.group[i].target)
elseif pfUI.uf.group[i] and pfUI.uf.group[i].target then
pfUI.uf.group[i].target:UpdateConfig()
RemoveMovable(pfUI.uf.group[i].target)
end
if C.unitframes.grouppet.visible == "1" and active then
pfUI.uf.group[i].pet = pfUI.uf.group[i].pet or pfUI.uf:CreateUnitFrame("PartyPet", i, C.unitframes.grouppet, 0.5)
pfUI.uf.group[i].pet:UpdateFrameSize()
pfUI.uf.group[i].pet:SetPoint("BOTTOMLEFT", pfUI.uf.group[i], "BOTTOMRIGHT", 3*default_border, -default_border)
pfUI.uf.group[i].pet:UpdateConfig()
UpdateMovable(pfUI.uf.group[i].pet)
elseif pfUI.uf.group[i] and pfUI.uf.group[i].pet then
pfUI.uf.group[i].pet:UpdateConfig()
RemoveMovable(pfUI.uf.group[i].pet)
end
end
end
pfUI.uf.group:UpdateConfig()
end)