- Fixed East Asian myriads showing a giganting non formated number in the total bar DPS.

- Added a reset nickname button in the right side of the nickname field.
- Framework and NickTag library updates.
This commit is contained in:
Tercioo
2018-12-03 17:25:35 -02:00
parent 857ddbbc9e
commit 24d5be67d2
8 changed files with 215 additions and 275 deletions
+25
View File
@@ -3378,6 +3378,31 @@ function DF:CreateCoolTip()
end
end
function CoolTip:QuickTooltip (host, ...)
CoolTip:Preset (2)
CoolTip:SetHost (host)
for i = 1, select ("#", ...) do
local line = select (i, ...)
CoolTip:AddLine (line)
end
CoolTip:ShowCooltip()
end
function CoolTip:InjectQuickTooltip (host, ...)
host.CooltipQuickTooltip = {...}
host:HookScript ("OnEnter", function()
CoolTip:QuickTooltip (host, unpack (host.CooltipQuickTooltip))
end)
host:HookScript ("OnLeave", function()
CoolTip:Hide()
end)
end
return CoolTip
end
+1 -1
View File
@@ -1,5 +1,5 @@
local dversion = 123
local dversion = 126
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
+43 -7
View File
@@ -5039,7 +5039,20 @@ DF.IconRowFunctions = {
if (self.options.show_text) then
iconFrame.CountdownText:Show()
iconFrame.CountdownText:SetText (floor (startTime + duration - GetTime()))
local formattedTime = floor (startTime + duration - GetTime())
if (formattedTime >= 3600) then
formattedTime = floor (formattedTime / 3600) .. "h"
elseif (formattedTime >= 60) then
formattedTime = floor (formattedTime / 60) .. "m"
else
formattedTime = floor (formattedTime)
end
iconFrame.CountdownText:SetText (formattedTime)
iconFrame.Cooldown:SetHideCountdownNumbers (true)
else
iconFrame.CountdownText:Hide()
@@ -5621,23 +5634,46 @@ end
function DF:PassLoadFilters (loadTable, encounterID)
--class
local passLoadClass
if (loadTable.class.Enabled) then
local _, classFileName = UnitClass ("player")
if (not loadTable.class [classFileName]) then
return false
else
passLoadClass = true
end
end
--spec
if (loadTable.spec.Enabled) then
local specIndex = GetSpecialization()
if (specIndex) then
local specID = GetSpecializationInfo (specIndex)
if (not loadTable.spec [specID]) then
local canCheckTalents = true
if (passLoadClass) then
--if is allowed to load on this class, check if the talents isn't from another class
local _, classFileName = UnitClass ("player")
local specsForThisClass = DF:GetClassSpecIDs (classFileName)
canCheckTalents = false
for _, specID in ipairs (specsForThisClass) do
if (loadTable.spec [specID]) then
--theres a talent for this class
canCheckTalents = true
break
end
end
end
if (canCheckTalents) then
local specIndex = GetSpecialization()
if (specIndex) then
local specID = GetSpecializationInfo (specIndex)
if (not loadTable.spec [specID]) then
return false
end
else
return false
end
else
return false
end
end