Only hide not used barras3 and add tooltip for barras3
This commit is contained in:
@@ -2213,10 +2213,6 @@ end
|
||||
------ Detalhe Info Interrupt
|
||||
function atributo_misc:MontaDetalhesInterrupt (spellid, barra)
|
||||
|
||||
for _, barra in ipairs(info.barras3) do
|
||||
barra:Hide()
|
||||
end
|
||||
|
||||
local esta_magia = self.interrupt_spells._ActorTable [spellid]
|
||||
if (not esta_magia) then
|
||||
return
|
||||
@@ -2245,8 +2241,10 @@ function atributo_misc:MontaDetalhesInterrupt (spellid, barra)
|
||||
table.sort (habilidades_alvos, _detalhes.Sort2)
|
||||
local max_ = habilidades_alvos[1][2]
|
||||
|
||||
local lastIndex = 1
|
||||
local barra
|
||||
for index, tabela in ipairs(habilidades_alvos) do
|
||||
lastIndex = index
|
||||
barra = barras [index]
|
||||
|
||||
if (not barra) then --se a barra n�o existir, criar ela ent�o
|
||||
@@ -2254,6 +2252,8 @@ function atributo_misc:MontaDetalhesInterrupt (spellid, 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
|
||||
@@ -2274,6 +2274,10 @@ function atributo_misc:MontaDetalhesInterrupt (spellid, barra)
|
||||
end
|
||||
end
|
||||
|
||||
for i = lastIndex+1, #barras do
|
||||
barras[i]:Hide()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user