Libraries Update

This commit is contained in:
Tercio Jose
2023-07-04 18:23:57 -03:00
parent 185d27ea9c
commit b5f302ae03
10 changed files with 145 additions and 20 deletions
+6 -6
View File
@@ -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