mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 12:30:50 +00:00
phase 1 removing tbc
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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