-------------------------------------------------------------------------------- -- Function......... : createAmmo -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function FPSMainHUD.createAmmo ( hUser ) -------------------------------------------------------------------------------- local c = hud.newComponent ( hUser, hud.kComponentTypeLabel, "MainHUD.Ammo" ) if ( c ~= nil ) then hud.setComponentPosition ( c, 10, 7 ) hud.setComponentSize ( c, 15, 10 ) hud.setComponentBackgroundColor ( c, 0, 0, 0, 0 ) hud.setComponentBorderColor ( c, 0, 0, 0, 0 ) hud.setLabelText ( c, "100" ) hud.setLabelTextHeight ( c, 80 ) end -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------