修复猎人野兽训练展示技能所需训练点数错误问题

修复拾取问题
修复其他已知问题
修复自动下马问题以及带来的猎人守护自动关闭问题
彻底修复拾取界面问题
修复目标框架的施法条监控
修复其他已知问题
调整dps插件对仇恨的估算方式
优化dps插件
修复远程攻击条问题
This commit is contained in:
rucky
2026-03-25 00:56:49 +08:00
parent c0f1ecc713
commit c7dd0f4848
9 changed files with 393 additions and 266 deletions

View File

@@ -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()