-------------------------------------------------------------------------------- -- Handler.......... : onAmmoSetValue -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function FPSMainHUD.onAmmoSetValue ( n ) -------------------------------------------------------------------------------- hud.setLabelText ( hud.getComponent ( this.getUser ( ), "MainHUD.Ammo" ), string.format ( "%#.3d", n ) ) -------------------------------------------------------------------------------- end --------------------------------------------------------------------------------