from retail
This commit is contained in:
@@ -83,9 +83,10 @@ end
|
||||
|
||||
local function supports(regionType)
|
||||
return regionType == "texture"
|
||||
or regionType == "progresstexture"
|
||||
or regionType == "icon"
|
||||
or regionType == "aurabar"
|
||||
or regionType == "progresstexture"
|
||||
or regionType == "icon"
|
||||
or regionType == "aurabar"
|
||||
or regionType == "empty"
|
||||
end
|
||||
|
||||
WeakAuras.RegisterSubRegionType("subborder", L["Border"], supports, create, modify, onAcquire, onRelease, default, nil, properties);
|
||||
|
||||
@@ -384,7 +384,8 @@ local supportedRegion = {
|
||||
icon = true,
|
||||
aurabar = true,
|
||||
texture = true,
|
||||
progresstexture = true
|
||||
progresstexture = true,
|
||||
empty = true,
|
||||
}
|
||||
local function supports(regionType)
|
||||
return supportedRegion[regionType]
|
||||
|
||||
@@ -221,6 +221,7 @@ local function supports(regionType)
|
||||
or regionType == "icon"
|
||||
or regionType == "aurabar"
|
||||
or regionType == "text"
|
||||
or regionType == "empty"
|
||||
end
|
||||
|
||||
WeakAuras.RegisterSubRegionType("submodel", L["Model"], supports, create, modify, onAcquire, onRelease, default, nil, properties);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -486,6 +486,7 @@ local function supports(regionType)
|
||||
or regionType == "progresstexture"
|
||||
or regionType == "icon"
|
||||
or regionType == "aurabar"
|
||||
or regionType == "empty"
|
||||
end
|
||||
|
||||
WeakAuras.RegisterSubRegionType("subtext", L["Text"], supports, create, modify, onAcquire, onRelease,
|
||||
|
||||
@@ -66,10 +66,6 @@ local properties = {
|
||||
bigStep = 1,
|
||||
default = 0
|
||||
}
|
||||
|
||||
-- TODO width?
|
||||
-- TODO height?
|
||||
--
|
||||
}
|
||||
|
||||
local funcs = {
|
||||
@@ -156,6 +152,7 @@ local function supports(regionType)
|
||||
or regionType == "icon"
|
||||
or regionType == "aurabar"
|
||||
or regionType == "text"
|
||||
or regionType == "empty"
|
||||
end
|
||||
|
||||
WeakAuras.RegisterSubRegionType("subtexture", L["Texture"], supports, create, modify, onAcquire, onRelease, default, nil, properties)
|
||||
|
||||
Reference in New Issue
Block a user