- tooltip fix for heal absorbs.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
_detalhes.build_counter = 3640
|
||||
_detalhes.build_counter = 3652
|
||||
_detalhes.userversion = "v7.2.0." .. _detalhes.build_counter
|
||||
_detalhes.realversion = 117 --core version
|
||||
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
|
||||
@@ -21,11 +21,10 @@ do
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
--[[
|
||||
|cFFFFFF00v7.2.0.3640.116 (|cFFFFCC00May 04th, 2016|r|cFFFFFF00)|r:\n\n
|
||||
|cFFFFFF00v7.2.0.3652.116 (|cFFFFCC00May 04th, 2016|r|cFFFFFF00)|r:\n\n
|
||||
|cFFFFFF00-|r Added Heal Absorbed display under Heal bracket.\n\n
|
||||
Heal Absoorb are the heal denied by abilities such like DK's Necrotic Strike or raid boss Chromatic Anomaly's 'Time Release' ability.
|
||||
The tooltip of this display shows which players got heal denied, which abilities absorbed the heal, which abilities tried to heal but got the heal denied.
|
||||
|
||||
Heal Absoorb are the heal denied by abilities such like DK's Necrotic Strike or raid boss Chromatic Anomaly's 'Time Release' ability.\n
|
||||
The tooltip of this display shows which players got heal denied, which abilities absorbed the heal, which abilities tried to heal but got the heal denied.\n
|
||||
--]]
|
||||
--
|
||||
|
||||
|
||||
+10
-8
@@ -140,8 +140,8 @@ end
|
||||
|
||||
function _detalhes:ContainerSortHeal (container, amount, keyName2)
|
||||
keyName = keyName2
|
||||
_table_sort (container, _detalhes.SortKeySimpleHeal)
|
||||
|
||||
_table_sort (container, _detalhes.SortKeySimpleHeal)
|
||||
|
||||
if (amount) then
|
||||
for i = amount, 1, -1 do --> de trás pra frente
|
||||
if (container[i][keyName] < 1) then
|
||||
@@ -267,7 +267,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo
|
||||
instancia.top = conteudo[1][keyName]
|
||||
|
||||
elseif (instancia.modo == modo_ALL or sub_atributo == 5) then --> mostrando ALL
|
||||
|
||||
|
||||
amount = _detalhes:ContainerSortHeal (conteudo, amount, keyName)
|
||||
|
||||
if (sub_atributo == 2) then --hps
|
||||
@@ -345,7 +345,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo
|
||||
--> refaz o mapa do container
|
||||
--> se for cache não precisa remapear
|
||||
showing:remapear()
|
||||
|
||||
|
||||
if (exportar) then
|
||||
return total, keyName, instancia.top, amount
|
||||
end
|
||||
@@ -354,7 +354,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo
|
||||
instancia:EsconderScrollBar()
|
||||
return _detalhes:EndRefresh (instancia, total, tabela_do_combate, showing) --> retorna a tabela que precisa ganhar o refresh
|
||||
end
|
||||
|
||||
|
||||
--estra mostrando ALL então posso seguir o padrão correto? primeiro, atualiza a scroll bar...
|
||||
instancia:AtualizarScrollBar (amount)
|
||||
|
||||
@@ -438,6 +438,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo
|
||||
conteudo[myPos]:AtualizaBarra (instancia, barras_container, qual_barra, myPos, total, sub_atributo, forcar, keyName, combat_time, percentage_type, use_animations, bars_show_data, bars_brackets, bars_separator)
|
||||
qual_barra = qual_barra+1
|
||||
else
|
||||
|
||||
for i = instancia.barraS[1], iter_last, 1 do --> vai atualizar só o range que esta sendo mostrado
|
||||
if (conteudo[i]) then
|
||||
conteudo[i]:AtualizaBarra (instancia, barras_container, qual_barra, i, total, sub_atributo, forcar, keyName, combat_time, percentage_type, use_animations, bars_show_data, bars_brackets, bars_separator)
|
||||
@@ -995,7 +996,7 @@ function atributo_heal:ToolTip_HealingDenied (instancia, numero, barra, keydown)
|
||||
end
|
||||
|
||||
--Spells
|
||||
table.sort (spellList, _detalhes.sort2)
|
||||
table.sort (spellList, _detalhes.Sort2)
|
||||
_detalhes:AddTooltipSpellHeaderText ("Spells", headerColor, #spellList, [[Interface\TUTORIALFRAME\UI-TutorialFrame-LevelUp]], 0.10546875, 0.89453125, 0.05859375, 0.6796875)
|
||||
_detalhes:AddTooltipHeaderStatusbar (r, g, b, barAlha)
|
||||
|
||||
@@ -1029,13 +1030,14 @@ function atributo_heal:ToolTip_HealingDenied (instancia, numero, barra, keydown)
|
||||
_detalhes:AddTooltipBackgroundStatusbar()
|
||||
end
|
||||
|
||||
-- follow esta bugado com este display
|
||||
|
||||
--Target Players
|
||||
local playerSorted = {}
|
||||
for playerName, amount in _pairs (targetList) do
|
||||
tinsert (playerSorted, {playerName, amount})
|
||||
end
|
||||
table.sort (playerSorted, _detalhes.sort2)
|
||||
table.sort (playerSorted, _detalhes.Sort2)
|
||||
_detalhes:AddTooltipSpellHeaderText ("Targets", headerColor, #playerSorted, [[Interface\TUTORIALFRAME\UI-TutorialFrame-LevelUp]], 0.10546875, 0.89453125, 0.05859375, 0.6796875)
|
||||
_detalhes:AddTooltipHeaderStatusbar (r, g, b, barAlha)
|
||||
|
||||
@@ -1081,7 +1083,7 @@ function atributo_heal:ToolTip_HealingDenied (instancia, numero, barra, keydown)
|
||||
for spellID, amount in _pairs (spellsDenied) do
|
||||
tinsert (spellsSorted, {spellID, amount})
|
||||
end
|
||||
table.sort (spellsSorted, _detalhes.sort2)
|
||||
table.sort (spellsSorted, _detalhes.Sort2)
|
||||
_detalhes:AddTooltipSpellHeaderText ("Spells Affected", headerColor, #spellsSorted, [[Interface\TUTORIALFRAME\UI-TutorialFrame-LevelUp]], 0.10546875, 0.89453125, 0.05859375, 0.6796875)
|
||||
_detalhes:AddTooltipHeaderStatusbar (r, g, b, barAlha)
|
||||
|
||||
|
||||
@@ -993,6 +993,8 @@
|
||||
|
||||
function parser:heal_denied (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellidAbsorb, spellnameAbsorb, spellschoolAbsorb, serialHealer, nameHealer, flagsHealer, flags2Healer, spellidHeal, spellnameHeal, typeHeal, amountDenied)
|
||||
|
||||
-- print (who_name, alvo_name, nameHealer, spellidHeal, spellnameHeal, typeHeal, amountDenied)
|
||||
|
||||
if (not _in_combat) then
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user