Only hide not used barras3 and add tooltip for barras3

This commit is contained in:
Flamanis
2023-01-27 15:00:40 -06:00
parent 0efe411aa2
commit b15d002c04
5 changed files with 56 additions and 25 deletions
+8 -4
View File
@@ -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 no existir, criar ela ento
@@ -2254,6 +2252,8 @@ function atributo_misc:MontaDetalhesInterrupt (spellid, barra)
barra.textura:SetStatusBarColor(1, 1, 1, 1) --isso aqui a parte da seleo e desceleo
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