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
+4 -3
View File
@@ -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);
+2 -1
View File
@@ -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]
+1
View File
@@ -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);
+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)
+1
View File
@@ -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,
+1 -4
View File
@@ -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)