This commit is contained in:
Tercio Jose
2023-02-07 13:46:37 -03:00
8 changed files with 65 additions and 35 deletions
+8 -4
View File
@@ -2208,10 +2208,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
@@ -2240,8 +2236,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
@@ -2249,6 +2247,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
@@ -2269,6 +2269,10 @@ function atributo_misc:MontaDetalhesInterrupt (spellid, barra)
end
end
for i = lastIndex+1, #barras do
barras[i]:Hide()
end
end