phase 1 removing tbc

This commit is contained in:
Brues
2026-05-25 18:16:02 -05:00
parent 199842e220
commit 58609b8c5c
19 changed files with 3 additions and 3054 deletions
+1 -2
View File
@@ -169,7 +169,6 @@ function pfUI.api.RunOOC(func)
if not frame then
frame = CreateFrame("Frame")
frame:SetScript("OnUpdate", function()
if InCombatLockdown and InCombatLockdown() then return end
for key, func in pairs(queue) do func(); queue[key] = nil end
end)
end
@@ -1115,7 +1114,7 @@ function pfUI.api.CreateBackdrop(f, inset, legacy, transp, backdropSetting)
f:SetBackdropBorderColor(er, eg, eb , ea)
else
-- increase clickable area if available
if f.SetHitRectInsets and ( not InCombatLockdown or not InCombatLockdown()) then
if f.SetHitRectInsets then
f:SetHitRectInsets(-border,-border,-border,-border)
end
-16
View File
@@ -2,17 +2,7 @@
setfenv(1, pfUI:GetEnvironment())
pfUI.uf = CreateFrame("Frame", nil, UIParent)
pfUI.uf:SetScript("OnUpdate", function()
if InCombatLockdown and not InCombatLockdown() then
for frame in pairs(pfUI.uf.delayed) do
frame:UpdateVisibility()
pfUI.uf.delayed[frame] = nil
end
end
end)
pfUI.uf.frames = {}
pfUI.uf.delayed = {}
-- ============================================================================
-- GUID-based Roster Tracking for Smart Updates
@@ -307,12 +297,6 @@ end
function pfUI.uf:UpdateVisibility()
local self = self or this
-- we're infight, delay the update
if InCombatLockdown and InCombatLockdown() then
pfUI.uf.delayed[self] = true
return
end
-- cache result of strsub to avoid repeating calls
if not self.cache_raid then
if strsub(self:GetName(),0,6) == "pfRaid" then