- added extra tooltip for the icon on player's bar.

This commit is contained in:
Tercio
2015-06-03 19:58:52 -03:00
parent f771a42cde
commit 557a25305a
9 changed files with 342 additions and 24 deletions
+9 -2
View File
@@ -1034,9 +1034,9 @@
end
end
function _detalhes:MontaTooltip (frame, qual_barra, keydown)
function _detalhes:BuildInstanceBarTooltip (frame)
local GameCooltip = GameCooltip
GameCooltip:Reset()
GameCooltip:SetType ("tooltip")
@@ -1063,7 +1063,14 @@
else
GameCooltip:SetHost (DetailsTooltipAnchor, myPoint, anchorPoint, x_Offset, y_Offset)
end
end
function _detalhes:MontaTooltip (frame, qual_barra, keydown)
self:BuildInstanceBarTooltip (frame)
local GameCooltip = GameCooltip
local esta_barra = self.barras [qual_barra] --> barra que o mouse passou em cima e irá mostrar o tooltip
local objeto = esta_barra.minha_tabela --> pega a referencia da tabela --> retorna a classe_damage ou classe_heal
if (not objeto) then --> a barra não possui um objeto