This commit is contained in:
NoM0Re
2025-04-03 21:03:11 +02:00
committed by GitHub
parent 875da9fb0e
commit 6cdfcac1b1
124 changed files with 1886 additions and 284 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
local L = WeakAuras.L;
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local WeakAuras = WeakAuras
local L = WeakAuras.L
+5 -2
View File
@@ -1,6 +1,7 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L
@@ -30,7 +31,9 @@ local function create(parent)
region:SetResizable(true)
region:SetMinResize(1, 1)
region.Update = function() end
region.Update = function()
region:UpdateProgress()
end
Private.regionPrototype.create(region)
return region
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L
local MSQ, MSQ_Version = LibStub("Masque", true);
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
local L = WeakAuras.L;
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;
+20 -3
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local WeakAuras = WeakAuras;
local L = WeakAuras.L;
@@ -405,7 +406,22 @@ local function UpdateProgressFromState(self, minMaxConfig, state, progressSource
local remainingProperty = progressSource[7]
local useAdditionalProgress = progressSource[8]
if progressType == "number" then
if not state then
self.minProgress, self.maxProgress = nil, nil
self.progressType = "timed"
self.duration = 0
self.expirationTime = math.huge
self.modRate = nil
self.inverse = false
self.paused = true
self.remaining = math.huge
if self.UpdateTime then
self:UpdateTime()
end
if self.SetAdditionalProgress then
self:SetAdditionalProgress(nil)
end
elseif progressType == "number" then
local value = state[property]
if type(value) ~= "number" then value = 0 end
local total = totalProperty and state[totalProperty]
@@ -607,13 +623,14 @@ local function UpdateProgressFrom(self, progressSource, minMaxConfig, state, sta
elseif trigger == 0 then
UpdateProgressFromManual(self, minMaxConfig, state, progressSource[3], progressSource[4])
else
UpdateProgressFromState(self, minMaxConfig, states[trigger] or {}, progressSource)
UpdateProgressFromState(self, minMaxConfig, states and states[trigger] or {}, progressSource)
end
end
-- For regions
local function UpdateProgress(self)
UpdateProgressFrom(self, self.progressSource, self, self.state, self.states)
self.subRegionEvents:Notify("UpdateProgress", self.state, self.states)
end
Private.UpdateProgressFrom = UpdateProgressFrom
@@ -1,6 +1,7 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
-- This is a more or less 1:1 copy of SmoothStatusBarMixin except that it
-- doesn't clamp the targetValue in ProcessSmoothStatusBars, because that's incorrect for us
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
local L = WeakAuras.L;
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;