Fixes (11)
This commit is contained in:
+17
-17
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 340
|
||||
local dversion = 341
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -56,31 +56,31 @@ function DF.IsDragonflight()
|
||||
end
|
||||
|
||||
function DF.IsTimewalkWoW()
|
||||
return DF.IsClassicWow() or DF.IsTBCWow() or DF.IsWotLKWow()
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 40000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function DF.IsClassicWow()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match ("%d") == "1") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 20000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function DF.IsTBCWow()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match ("%d") == "2") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 30000 and buildInfo >= 20000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
function DF.IsWotLKWow()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match ("%d") == "3") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 40000 and buildInfo >= 30000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
local roleBySpecTextureName = {
|
||||
|
||||
@@ -12,14 +12,22 @@ end
|
||||
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
|
||||
|
||||
local isTimewalkWoW = function()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 40000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
local IsDragonflight = function()
|
||||
return select(4, GetBuildInfo()) >= 100000
|
||||
end
|
||||
|
||||
--creates two tables, one with indexed talents and another with pairs values ([talentId] = true)
|
||||
function openRaidLib.UnitInfoManager.GetPlayerTalentsAsPairsTable()
|
||||
if (IsDragonflight()) then
|
||||
return {}
|
||||
end
|
||||
|
||||
local talentsPairs = {}
|
||||
for i = 1, 7 do
|
||||
for o = 1, 3 do
|
||||
@@ -30,10 +38,15 @@ function openRaidLib.UnitInfoManager.GetPlayerTalentsAsPairsTable()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return talentsPairs
|
||||
end
|
||||
|
||||
function openRaidLib.UnitInfoManager.GetPlayerTalents()
|
||||
if (IsDragonflight()) then
|
||||
return {}
|
||||
end
|
||||
|
||||
local talents = {0, 0, 0, 0, 0, 0, 0}
|
||||
for talentTier = 1, 7 do
|
||||
for talentColumn = 1, 3 do
|
||||
@@ -44,10 +57,15 @@ function openRaidLib.UnitInfoManager.GetPlayerTalents()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return talents
|
||||
end
|
||||
|
||||
function openRaidLib.UnitInfoManager.GetPlayerPvPTalents()
|
||||
if (IsDragonflight()) then
|
||||
return {}
|
||||
end
|
||||
|
||||
local talentsPvP = {0, 0, 0}
|
||||
local talentList = C_SpecializationInfo.GetAllSelectedPvpTalentIDs()
|
||||
for talentIndex, talentId in ipairs(talentList) do
|
||||
@@ -75,6 +93,11 @@ function openRaidLib.GetPlayerSpecId()
|
||||
end
|
||||
|
||||
function openRaidLib.UnitInfoManager.GetPlayerConduits()
|
||||
|
||||
if (IsDragonflight()) then
|
||||
return {}
|
||||
end
|
||||
|
||||
local conduits = {}
|
||||
local soulbindID = C_Soulbinds.GetActiveSoulbindID()
|
||||
|
||||
@@ -121,10 +144,10 @@ end
|
||||
|
||||
function openRaidLib.GearManager.GetPlayerItemLevel()
|
||||
if (_G.GetAverageItemLevel) then
|
||||
local _, _itemLevel = GetAverageItemLevel()
|
||||
itemLevel = floor(_itemLevel)
|
||||
local _, itemLevel = GetAverageItemLevel()
|
||||
itemLevel = floor(itemLevel)
|
||||
else
|
||||
itemLevel = 0
|
||||
return 0
|
||||
end
|
||||
return itemLevel
|
||||
end
|
||||
|
||||
@@ -133,8 +133,8 @@ LIB_OPEN_RAID_CAN_LOAD = false
|
||||
end
|
||||
|
||||
local isTimewalkWoW = function()
|
||||
local gameVersion = GetBuildInfo()
|
||||
if (gameVersion:match("%d") == "1" or gameVersion:match("%d") == "2" or gameVersion:match("%d") == "3") then
|
||||
local _, _, _, buildInfo = GetBuildInfo()
|
||||
if (buildInfo < 40000) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
<Animations>
|
||||
<AnimationGroup parentKey="StarAnim">
|
||||
<Rotation targetKey="$parent.$parent.Star" degrees="-90" duration="0.9" order="1"/>
|
||||
<Alpha targetKey="$parent.$parent.Star" change="0.50" duration="0.3667" order="1"/>
|
||||
<Alpha targetKey="$parent.$parent.Star" change="-0.50" duration="0.5333" order="2"/>
|
||||
<Alpha targetKey="$parent.$parent.Star" duration="0.3667" order="1"/>
|
||||
<Alpha targetKey="$parent.$parent.Star" duration="0.5333" order="2"/>
|
||||
</AnimationGroup>
|
||||
</Animations>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user