add Smooth Progress

This commit is contained in:
Bunny67
2022-01-01 10:30:45 +03:00
parent eb0e557f19
commit 22247adb25
4 changed files with 140 additions and 7 deletions
+2 -1
View File
@@ -473,6 +473,7 @@ function RealTimeProfilingWindow:GetBar(name)
else
local bar = CreateFrame("FRAME", nil, self.barsFrame)
self.bars[name] = bar
WeakAuras.Mixin(bar, SmoothStatusBarMixin)
bar.name = name
bar.parent = self
bar:SetSize(self.width, self.barHeight)
@@ -522,7 +523,7 @@ function RealTimeProfilingWindow:GetBar(name)
function bar:SetProgress(value)
self.value = value
self:SetValue(value)
self:SetSmoothedValue(value)
end
function bar:SetPosition(pos)