mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
phase 1 removing tbc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user