from retail
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user