修复猎人野兽训练展示技能所需训练点数错误问题
修复拾取问题 修复其他已知问题 修复自动下马问题以及带来的猎人守护自动关闭问题 彻底修复拾取界面问题 修复目标框架的施法条监控 修复其他已知问题 调整dps插件对仇恨的估算方式 优化dps插件 修复远程攻击条问题
This commit is contained in:
@@ -493,7 +493,7 @@ function SFrames.Party:Initialize()
|
||||
|
||||
if not self._globalUpdateFrame then
|
||||
self._globalUpdateFrame = CreateFrame("Frame", nil, UIParent)
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", function()
|
||||
self._globalUpdateFrame._onUpdateFunc = function()
|
||||
if SFrames.Party.testing then return end
|
||||
local dt = arg1
|
||||
local frames = SFrames.Party.frames
|
||||
@@ -533,7 +533,8 @@ function SFrames.Party:Initialize()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
self._globalUpdateFrame:Hide()
|
||||
end
|
||||
|
||||
self:ApplyConfig()
|
||||
@@ -745,20 +746,35 @@ function SFrames.Party:UpdateAll()
|
||||
self.frames[i].frame:Hide()
|
||||
end
|
||||
end
|
||||
if self._globalUpdateFrame then
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", nil)
|
||||
self._globalUpdateFrame:Hide()
|
||||
end
|
||||
return
|
||||
end
|
||||
if self.testing then return end
|
||||
local numParty = GetNumPartyMembers()
|
||||
local hasVisible = false
|
||||
for i = 1, 4 do
|
||||
local data = self.frames[i]
|
||||
local f = data.frame
|
||||
if i <= numParty then
|
||||
f:Show()
|
||||
self:UpdateFrame(data.unit)
|
||||
hasVisible = true
|
||||
else
|
||||
f:Hide()
|
||||
end
|
||||
end
|
||||
if self._globalUpdateFrame then
|
||||
if hasVisible then
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", self._globalUpdateFrame._onUpdateFunc)
|
||||
self._globalUpdateFrame:Show()
|
||||
else
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", nil)
|
||||
self._globalUpdateFrame:Hide()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function SFrames.Party:UpdateFrame(unit)
|
||||
|
||||
@@ -539,11 +539,13 @@ function SFrames.Raid:EnsureFrames()
|
||||
|
||||
if not self._globalUpdateFrame then
|
||||
self._globalUpdateFrame = CreateFrame("Frame", nil, UIParent)
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", function()
|
||||
self._globalUpdateFrame._onUpdateFunc = function()
|
||||
if SFrames.Raid.testing then return end
|
||||
local dt = arg1
|
||||
local frames = SFrames.Raid.frames
|
||||
if not frames then return end
|
||||
local visibleCount = SFrames.Raid._visibleCount or 0
|
||||
if visibleCount == 0 then return end
|
||||
for i = 1, 40 do
|
||||
local entry = frames[i]
|
||||
if entry then
|
||||
@@ -573,7 +575,8 @@ function SFrames.Raid:EnsureFrames()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
self._globalUpdateFrame:Hide()
|
||||
end
|
||||
|
||||
self:ApplyLayout()
|
||||
@@ -602,6 +605,7 @@ function SFrames.Raid:UpdateAll()
|
||||
groupSlots[g] = 0
|
||||
end
|
||||
|
||||
local visibleCount = 0
|
||||
for i = 1, 40 do
|
||||
local name, rank, subgroup = GetRaidRosterInfo(i)
|
||||
if name and subgroup and subgroup >= 1 and subgroup <= 8 then
|
||||
@@ -615,9 +619,16 @@ function SFrames.Raid:UpdateAll()
|
||||
self.frames[frameIndex].unit = "raid" .. i
|
||||
f:Show()
|
||||
self:UpdateFrame("raid" .. i)
|
||||
visibleCount = visibleCount + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
self._visibleCount = visibleCount
|
||||
|
||||
if self._globalUpdateFrame then
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", self._globalUpdateFrame._onUpdateFunc)
|
||||
self._globalUpdateFrame:Show()
|
||||
end
|
||||
|
||||
-- Show/hide group labels based on whether each group has members
|
||||
local showLabel = SFramesDB and SFramesDB.raidShowGroupLabel ~= false
|
||||
@@ -632,6 +643,11 @@ function SFrames.Raid:UpdateAll()
|
||||
end
|
||||
end
|
||||
else
|
||||
self._visibleCount = 0
|
||||
if self._globalUpdateFrame then
|
||||
self._globalUpdateFrame:SetScript("OnUpdate", nil)
|
||||
self._globalUpdateFrame:Hide()
|
||||
end
|
||||
if not self.testing and self._framesBuilt then
|
||||
for i = 1, 40 do
|
||||
self.frames[i].frame:Hide()
|
||||
|
||||
Reference in New Issue
Block a user