Stuff
public text v1 · immutableHealthLabel = Vitals:Add( vgui.Label('HealthLabel') )
HealthLabel.Style =
{
fg = Yellow,
font = DIN1451,
height = '100%',
margin = '0 10% 0 0',
position = 'relative',
-- width = vgui.Animate( {duration=0.4, from='0%', to='27%'} ),
width = '27%'
}
Game.Health.Change =
function( old, new )
HealthIcon.Style.visible = new > 0
HealthLabel.Style.text = new
HealthLabel.Style.visible = new > 0
Vitals:Invalidate()
end