Ir para conteúdo
  • 0

Health Bar


Faelzdanil

Pergunta

2 respostass a esta questão

Posts Recomendados

edita no healthinfo.lua nessa parte:

 

function onHealthChange(localPlayer, health, maxHealth)

healthBar:setText(health .. ' / ' .. maxHealth)

healthBar:setTooltip(tr(healthTooltip, health, maxHealth))

healthBar:setValue(health, 0, maxHealth)

end

 

 

na parte vermelha... é so tirar o maxHealth, ficando assim:

 

function onHealthChange(localPlayer, health, maxHealth)

healthBar:setText(health)

healthBar:setTooltip(tr(healthTooltip, health, maxHealth))

healthBar:setValue(health, 0, maxHealth)

end

 

 

OBS: não testei, não sei se vai da certo ;)

 

É foi exatamente o que eu tinha feito já !

 

Obrigado !

Link para o comentário
https://xtibia.com/forum/topic/215592-health-bar/#findComment-1528174
Compartilhar em outros sites

edita no healthinfo.lua nessa parte:

 

function onHealthChange(localPlayer, health, maxHealth)

healthBar:setText(health .. ' / ' .. maxHealth)

healthBar:setTooltip(tr(healthTooltip, health, maxHealth))

healthBar:setValue(health, 0, maxHealth)

end

 

 

na parte vermelha... é so tirar o maxHealth, ficando assim:

 

function onHealthChange(localPlayer, health, maxHealth)

healthBar:setText(health)

healthBar:setTooltip(tr(healthTooltip, health, maxHealth))

healthBar:setValue(health, 0, maxHealth)

end

 

 

OBS: não testei, não sei se vai da certo ;)

Link para o comentário
https://xtibia.com/forum/topic/215592-health-bar/#findComment-1528025
Compartilhar em outros sites

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...