#include "ui/menudef.h"

//health value
menuDef {
    	name "Player"
    	fullScreen MENU_FALSE
    	visible MENU_TRUE
   	rect 182 439 95 36//152 425 95 36//

//	Critical health blink - disabled
//	itemDef {
//	name "playerRect"
//	rect 10 -3 40 28
//	style 3
//	background "ui/assets/hud/healthalert"
//	visible 1
//	ownerdrawflag CG_SHOW_HEALTHCRITICAL            
//	}

    //**NEEDS GAME CODE FIX**
    //THIS TEXT SHOULD BE RIGHT-ALIGNED (currently centered)	
	itemDef {
      	name "healthok"
        rect 10 0 63 22 //0 0 63 22
	visible 1
	textalign 0
	decoration
	textstyle 6
	forecolor 1 1 1 1
	textscale 1.5 //.62
	ownerdraw CG_PLAYER_HEALTH
	addColorRange -999 25 1 0 0 1
	addColorRange 26 50 1 .5 0 1
	addColorRange 51 75 1 1 0 1
	addColorRange 76 99 .5 1 0 1
	addColorRange 100 150 1 1 1 1
	addColorRange 151 200 0.2 0.2 0.8 1
	}
}

//*****AMMO*****//

menuDef {
    	name "Ammo"
    	fullScreen MENU_FALSE
    	visible MENU_TRUE
    	rect 266 372 99 36//266 442 99 36// - bump up value for bottom weapon bar
	
	itemDef {
     	name "a"
	rect 12 0 24 24 
	visible 1
	decoration
	ownerdraw CG_PLAYER_AMMO_ICON2D
	}

	itemDef {
 	name "a"
	rect 39 10 63 12
	visible 1
	textstyle 3
	decoration
	textscale .62
	forecolor 1 1 1 1
	ownerdraw CG_PLAYER_AMMO_VALUE
	//Rockets/shotgun/nade/Rail/mine/NG
	addColorRange -999 3 1 0 0 1
	addColorRange 4 5 1 .5 0 1
	addColorRange 6 999 1 1 1 1
	}
}

//armor value
menuDef {
    	name "Armor"
    	fullScreen MENU_FALSE
    	visible MENU_TRUE	
    	rect 363 439 95 32//393 439 95 32//
	
    //**NEEDS GAME CODE FIX**
    //THIS TEXT SHOULD BE LEFT ALIGNED (currently centered)
	
	itemDef {
      	name "armor2"
        rect 22 0 63 22 //32 0 63 22
	    visible 1
	    decoration
	    textstyle 6
		forecolor 1 1 1 1
	    textscale 1.5 //.62
	    textalign 2
	    ownerdraw CG_PLAYER_ARMOR_VALUE
	    addColorRange -999 25 1 0 0 1
    	addColorRange 26 50  1 .5 0 1
    	addColorRange 51 75 1 1 0 1
		addColorRange 76 99 .5 1 0 1
		addColorRange 100 150 1 1 1 1
		addColorRange 151 200 0.2 0.2 0.8 1
	}
}