Fixes (3)

This commit is contained in:
Tercio Jose
2022-09-01 19:52:24 -03:00
parent ae22cfc634
commit b069b05b53
3 changed files with 22 additions and 6 deletions
+10 -2
View File
@@ -1,6 +1,6 @@
local dversion = 337
local dversion = 338
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -51,6 +51,10 @@ if (not PixelUtil) then
end
end
function DF.IsDragonflight()
return select(4, GetBuildInfo()) >= 100000
end
function DF.IsTimewalkWoW()
return DF.IsClassicWow() or DF.IsTBCWow() or DF.IsWotLKWow()
end
@@ -2905,7 +2909,11 @@ function DF:CreateAnimation (animation, type, order, duration, arg1, arg2, arg3,
anim:SetToAlpha (arg2)
elseif (type == "SCALE") then
anim:SetScaleFrom (arg1, arg2)
if (DF.IsDragonflight()) then
anim:SetScaleFrom (arg1, arg2)
else
anim:SetFromScale (arg1, arg2)
end
anim:SetToScale (arg3, arg4)
anim:SetOrigin (arg5 or "center", arg6 or 0, arg7 or 0) --point, x, y