Libraries Update
This commit is contained in:
+6
-6
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 444
|
||||
local dversion = 445
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
||||
|
||||
@@ -124,9 +124,9 @@ end
|
||||
|
||||
---return true if the player is playing in the WotLK version of wow with the retail api
|
||||
---@return boolean
|
||||
function DF.IsWotLKWowWithRetailAPI()
|
||||
function DF.IsNonRetailWowWithRetailAPI()
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 40000 and buildInfo >= 30401) then
|
||||
if (buildInfo < 40000 and buildInfo >= 30401) or (buildInfo < 20000 and buildInfo >= 11404) then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@@ -263,7 +263,7 @@ function DF.UnitGroupRolesAssigned(unitId)
|
||||
end
|
||||
end
|
||||
|
||||
---return the specialization of the player it self
|
||||
---return the specializationid of the player it self
|
||||
---@return number|nil
|
||||
function DF.GetSpecialization()
|
||||
if (GetSpecialization) then
|
||||
@@ -272,7 +272,7 @@ function DF.GetSpecialization()
|
||||
return nil
|
||||
end
|
||||
|
||||
---return the specialization using the specId
|
||||
---return the specializationid using the specId
|
||||
---@param specId unknown
|
||||
function DF.GetSpecializationInfoByID(specId)
|
||||
if (GetSpecializationInfoByID) then
|
||||
@@ -3394,7 +3394,7 @@ function DF:CreateAnimation(animation, animationType, order, duration, arg1, arg
|
||||
anim:SetToAlpha(arg2)
|
||||
|
||||
elseif (animationType == "SCALE") then
|
||||
if (DF.IsDragonflight() or DF.IsWotLKWowWithRetailAPI()) then
|
||||
if (DF.IsDragonflight() or DF.IsNonRetailWowWithRetailAPI()) then
|
||||
anim:SetScaleFrom(arg1, arg2)
|
||||
anim:SetScaleTo(arg3, arg4)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user