Only hide not used barras3 and add tooltip for barras3
This commit is contained in:
@@ -2130,10 +2130,6 @@ end
|
||||
|
||||
function atributo_heal:MontaDetalhesHealingTaken (nome, barra)
|
||||
|
||||
for _, barra in ipairs(info.barras3) do
|
||||
barra:Hide()
|
||||
end
|
||||
|
||||
local barras = info.barras3
|
||||
local instancia = info.instancia
|
||||
|
||||
@@ -2160,8 +2156,10 @@ function atributo_heal:MontaDetalhesHealingTaken (nome, barra)
|
||||
|
||||
local max_ = minhas_magias[1] and minhas_magias[1][2] or 0 --dano que a primeiro magia vez
|
||||
|
||||
local lastIndex = 1
|
||||
local barra
|
||||
for index, tabela in ipairs(minhas_magias) do
|
||||
lastIndex = index
|
||||
barra = barras [index]
|
||||
|
||||
if (not barra) then --se a barra n�o existir, criar ela ent�o
|
||||
@@ -2169,6 +2167,8 @@ function atributo_heal:MontaDetalhesHealingTaken (nome, barra)
|
||||
barra.textura:SetStatusBarColor(1, 1, 1, 1) --isso aqui � a parte da sele��o e descele��o
|
||||
end
|
||||
|
||||
barra.show = tabela[1]
|
||||
|
||||
if (index == 1) then
|
||||
barra.textura:SetValue(100)
|
||||
else
|
||||
@@ -2186,6 +2186,11 @@ function atributo_heal:MontaDetalhesHealingTaken (nome, barra)
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
for i = lastIndex+1, #barras do
|
||||
barras[i]:Hide()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
local absorbed_table = {c = {1, 1, 1, 0.4}, p = 0}
|
||||
|
||||
Reference in New Issue
Block a user