from retail

This commit is contained in:
NoM0Re
2025-01-27 03:28:33 +01:00
parent 0e761a6814
commit 8e07a6495c
32 changed files with 1450 additions and 777 deletions
+6 -3
View File
@@ -34,7 +34,7 @@ local default = function(parentType)
height = 32,
scale = 1,
progressSources = {-2, ""},
progressSource = {-2, ""},
}
if IsAddOnLoaded("WeakAurasStopMotion") then
@@ -153,7 +153,7 @@ local ProgressFuncs = {
end
end,
Update = function(self, state, states)
Private.UpdateProgressFrom(self.progressData, self.progressSource, {}, state, states, self.parent)
Private.UpdateProgressFrom(self.progressData, self.progressSource, self, state, states, self.parent)
self:UpdateFrame()
self:UpdateFrameTick()
end,
@@ -243,7 +243,9 @@ local function modify(parent, region, parentData, data, first)
customFrameHeight = data.customFrameHeight,
})
region.progressSource = Private.AddProgressSourceMetaData(parentData, data.progressSources or {-2, ""})
region.stopMotion:SetColor(unpack(data.stopmotionColor))
Private.regionPrototype.AddMinMaxProgressSource(true, region, parentData, data)
region.FrameTick = nil
if data.animationType == "loop" or data.animationType == "bounce" or data.animationType == "once" then
@@ -272,6 +274,7 @@ local function supports(regionType)
or regionType == "icon"
or regionType == "aurabar"
or regionType == "text"
or regionType == "empty"
end
WeakAuras.RegisterSubRegionType("substopmotion", L["Stop Motion"], supports, create, modify, onAcquire, onRelease, default, nil, properties)