'/details users' major upgrade

- Stop showing the '/details users' panel again after the user closes the panel.
- Improvements on aura detection at the start and end of an encounter.
- Rewrite on Potion Used custom display.
This commit is contained in:
Tercio Jose
2019-10-19 15:09:10 -03:00
parent 4e8b13a2ef
commit f01394be98
5 changed files with 107 additions and 230 deletions
+14 -9
View File
@@ -836,28 +836,28 @@ function SlashCmdList.DETAILS (msg, editbox)
Details.RefreshUserList()
end)
C_Timer.After (0.6, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (0.9, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (1.3, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (1.6, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (3, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (4, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (5, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
C_Timer.After (8, function()
Details.RefreshUserList()
Details.RefreshUserList (true)
end)
elseif (command == "names") then
@@ -1693,7 +1693,12 @@ Damage Update Status: @INSTANCEDAMAGESTATUS
end
end
function Details.RefreshUserList()
function Details.RefreshUserList (ignoreIfHidden)
if (ignoreIfHidden and DetailsUserPanel and not DetailsUserPanel:IsShown()) then
return
end
local newList = DetailsFramework.table.copy ({}, _detalhes.users or {})
table.sort (newList, function(t1, t2)