All pastes #708435 Raw Edit

Stuff

public text v1 · immutable
#708435 ·published 2007-09-23 20:45 UTC
rendered paste body
HealthLabel = 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