//=======================================================================
//			Copyright XashXT Group 2007 
//=======================================================================

			:
Xash   run-time     hud.
  ,       .
     -   .
      .

			1.  :
       .

			1.1   :
if -       ,    .
   .
return -   ,    .

			1.1.1   :
if( a == b )	-  ,  a   b
if( a != b )	-  ,  a   b
if( a > b )	-  ,  a  ,  b
if( a >= b )	-  ,  a     b
if( a < b )	-  ,  a  ,  b
if( a <= b )	-  ,  a     b
if( a && b )	-  ,  a  b    
if( a || b )	-  ,  a  b    
if( a & b )	-  ,   ,   b,      a
if( a )		-  ,  a    
if( !a )		-  ,  a   
         !,  if(!a == b).

			 1.2.   
void SetStatAlias( char *name, int stat_num ) -     ,   
	       stats.      
	  ( qc-),   setstats. defs.c      STATS.
	          .    
	           .
	        Hud_Setup.
void SetCvarAlias( char *name, char *cvar_name ) -     ,  
	      (  ,    
	 ),         .   
	     ,     -     
	  .
	        Hud_Setup.
void LoadPic( char *picname ) -     .      ,
	             .
	        Hud_Precache.
void DrawField( int value, int x, int y, int color ) -      ,  
	 value.   -  , , , . ..
	 x, y         0 - 640 ( x)  0 - 480 ( y)
	      .
	      0 - 7 ().
void SetColor( float r, float g, float b, float a ) -        .
	            ,   
	.
void ResetColor( void ) -      .     
	  ,            
	return;
void DrawPic( char *picname, int x, int y, int w, int h ) -     .  
	    stats-   .      ,
	    (  qc-)    .   
	   graphics,       .      ,
	           ,   .
	 x, y         0 - 640 ( x) 
	 0 - 480 ( y).       .
	 w, h           0 - 640 ( w)
	 0 - 480 ( h).
void DrawCenterPic( char *picname, int w, int h ) -  ,   DrawPic,      .
void DrawBarImage( float percent, char *picname, int x, int y, int w, int h ) -  -  
	.  percent      0  100.    
	    ,     DrawPic
void DrawCenterBarImage( float percent, char *picname, int w, int h ) -  ,   DrawBarImage,  
	-   .
void DrawBarGeneric( float percent, int x, int y, int w, int h ) -   -,  
	.      DrawBarImage.
void DrawCenterBarGeneric( float percent, int w, int h ) -  ,   DrawBarGeneric,   -
	  .
void DrawString( char *string, int x, int y ) -    ,    string ().
	 x, y         0 - 640 ( x) 
	 0 - 480 ( y).       .
void DrawCenterString( char *string ) -  ,   DrawString,      .

			1.3.  ,  .
void Hud_Setup( void ) -    
void Hud_Precache( void ) -    ,  
void Hud_MenuBackground( void ) -       (  ).
void Hud_DrawPlaque( void ) -       (  ).
void Hud_HelpComputer( void ) -  ,   qc- (  ).
void Hud_Single( void ) -     singleplayer (  qc-,   ).

			1.4   
// -   ,   C++ .
/* */ -  ,     C++ .

			2.      
       ,      
   .

			2.1 
"CG_GetAliasValue: alias "a" have invalid cvar name "b" " -  "a"     
	  "b",    .
"SetStatsAlias: "a" too long name, limit is 64" -  "a"    .
"SetStatsAlias: value "a" out of range" -  "a"  stats-    .
	  : 0 - 32.
"SetStatsAlias: aliases limit exceeded" -    32  (    
	stats-).    .
"SetStatsAlias: redefinition stat alias "a" " -  "a"     .
"SetStatsAlias: duplicated stat alias "a" " -  "a"  .
"SetCvarAlias: "a" too long name, limit is 64" -  "a"    .
"SetCvarAlias: "a" too long cvar name, limit is 64" -   "a"    .
"SetCvarAlias: aliases limit exceeded" -    128  .  
	  .
"SetCvarAlias: redefinition cvar alias "a" " -  "a"     .
"SetCvarAlias: duplicated cvar alias "a" " -  "a"  .
"CG_ParseArgs: "a" have too few parameters" -    "a"    -
	 (     0 ).
" "a": can't exec function "b" " -  "a"     "b". (  
	  ).       .

			2.2 
"CG_ParseArgs: "a" have too many parameters" -    "a"     
	 (   ).
"CG_SkipBlock: missing } in function "a" " -      . ( 
	    ).
"CG_ParseExpression: unknown variable "a" " -       
	 . (    ).
" "a": can't use undefined alias "b" " -    "a"    
	 "b". (   ).

			3.    .
      .
       \    -.
 ,           .
    ,  .  , ,    
         .
   .
 Hud_Setup, Hud_Precache, Hud_MenuBackground  Hud_DrawPlaque     
  .