修复猎人野兽训练展示技能所需训练点数错误问题
修复拾取问题 修复其他已知问题 修复自动下马问题以及带来的猎人守护自动关闭问题 彻底修复拾取界面问题 修复目标框架的施法条监控 修复其他已知问题 调整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)
|
||||
|
||||
Reference in New Issue
Block a user