- Fixed an issue where some options combinations was making the window unlock after /reload.

- Framework update.
- Localization updates.
This commit is contained in:
Tercioo
2019-02-19 21:56:21 -03:00
parent c018f4db29
commit 02fa9a5c6b
7 changed files with 66 additions and 25 deletions
+29 -1
View File
@@ -1,5 +1,5 @@
local dversion = 136
local dversion = 139
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -87,6 +87,9 @@ local embed_functions = {
"GetNpcIdFromGuid",
"ShowFeedbackPanel",
"SetAsOptionsPanel",
"GetPlayerRole",
"GetCharacterTalents",
"GetCharacterPvPTalents",
"CreateDropDown",
"CreateButton",
@@ -2762,11 +2765,36 @@ DF.CLEncounterID = {
{ID = 2122, Name = "G'huun"},
}
function DF:GetPlayerRole()
local assignedRole = UnitGroupRolesAssigned ("player")
if (assignedRole == "NONE") then
local spec = GetSpecialization()
return spec and GetSpecializationRole (spec) or "NONE"
end
return assignedRole
end
function DF:GetCLEncounterIDs()
return DF.CLEncounterID
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> delta seconds reader
if (not DetailsFrameworkDeltaTimeFrame) then
CreateFrame ("frame", "DetailsFrameworkDeltaTimeFrame", UIParent)
end
local deltaTimeFrame = DetailsFrameworkDeltaTimeFrame
deltaTimeFrame:SetScript ("OnUpdate", function (self, deltaTime)
self.deltaTime = deltaTime
end)
function GetWorldDeltaSeconds()
return deltaTimeFrame.deltaTime
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> debug