- fixed issue when reporting a custom heal attribute.

- fixed problem with dps with isn't showing after a new combat start.
- fixed icon problem on actor details panel.
- fixed a rare issue when switching between healing and damage throws a lua error.
- fixed custom list which wasn't showing the correct custom selected.
- added single click report for damage prevented.
- added a alert when data share is running.
- added single click report for cooldowns.
- cooldowns tooltip now show 15 cooldowns up from 3.
- added API: _detalhes:GetEncounterEqualize (mapid, bossindex)
- added API CoolTip options: "MinWidth".
This commit is contained in:
Tercio
2013-10-08 18:12:25 -03:00
parent 3c1e8b784d
commit 7c93260db7
18 changed files with 370 additions and 49 deletions
+39 -1
View File
@@ -112,6 +112,44 @@ function atributo_energy:NovaTabela (serial, nome, link)
return _new_energyActor
end
function _detalhes.SortGroupEnergy (container, keyName2)
keyName = keyName2
return _table_sort (container, _detalhes.SortKeyGroupEnergy)
end
function _detalhes.SortKeyGroupEnergy (table1, table2)
if (table1.grupo and table2.grupo) then
return table1 [keyName] > table2 [keyName]
elseif (table1.grupo and not table2.grupo) then
return true
elseif (not table1.grupo and table2.grupo) then
return false
else
return table1 [keyName] > table2 [keyName]
end
end
function _detalhes.SortKeySimpleEnergy (table1, table2)
return table1 [keyName] > table2 [keyName]
end
function _detalhes:ContainerSortEnergy (container, amount, keyName2)
keyName = keyName2
_table_sort (container, _detalhes.SortKeySimpleEnergy)
if (amount) then
for i = amount, 1, -1 do --> de trás pra frente
if (container[i][keyName] < 1) then
amount = amount-1
else
break
end
end
return amount
end
end
function atributo_energy:RefreshWindow (instancia, tabela_do_combate, forcar, exportar)
local showing = tabela_do_combate [class_type] --> o que esta sendo mostrado -> [1] - dano [2] - cura --> pega o container com ._NameIndexTable ._ActorTable
@@ -162,7 +200,7 @@ function atributo_energy:RefreshWindow (instancia, tabela_do_combate, forcar, ex
if (instancia.atributo == 5) then --> custom
--> faz o sort da categoria e retorna o amount corrigido
amount = _detalhes:ContainerSort (conteudo, amount, keyName)
amount = _detalhes:ContainerSortEnergy (conteudo, amount, keyName)
--> grava o total
instancia.top = conteudo[1][keyName]