#define COMMON_HUD_R 1.0
#define COMMON_HUD_G 0.0
#define COMMON_HUD_B 0.0

#include "ui/tremulous_common_hud.h"

itemDef
{
	name "background"
	rect -24 373 258 127
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor .48 .02 .03 .3
	style WINDOW_STYLE_SHADER
	background "ui/assets/alien/hbg"
}

itemDef
{
	name "health"
	rect -3 399 179 83
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor .48 .02 .03 .3
	ownerdraw CG_PLAYER_HEALTH_METER
	background "ui/assets/alien/healt"
}

itemDef
{
	name "background"
	rect 406 373 258 127
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor .48 .02 .03 .5
	style WINDOW_STYLE_SHADER
	background "ui/assets/alien/pbg"
}

itemDef
{
	name "poison"
	rect 450 409 29 47
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor .39 0 .09 .7
	ownerdraw CG_PLAYER_BOOSTED_METER
	background "ui/assets/alien/poisonbg"
}

itemDef
{
	name "leftsmall" // wallclimb
	rect -16 358 251 85
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	background "ui/assets/alien/l-spikes-small"
	ownerdraw CG_PLAYER_WALLCLIMBING
}

itemDef
{
	name "leftbig" // wallclimb
	rect -20 336 255 107
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0
	background "ui/assets/alien/l-spikes-big"
	ownerdraw CG_PLAYER_WALLCLIMBING
}

itemDef
{
	name "rightsmall" // wallclimb
	rect 405 358 251 85
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	background "ui/assets/alien/r-spikes-small"
	ownerdraw CG_PLAYER_WALLCLIMBING
}

itemDef
{
	name "rightbig" // wallclimb
	rect 405 336 255 107
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0
	background "ui/assets/alien/r-spikes-big"
	ownerdraw CG_PLAYER_WALLCLIMBING
}

itemDef
{
	name "background"
	rect -24 394 209 96
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor 1 1 1 .9
	style WINDOW_STYLE_SHADER
	background "ui/assets/alien/ll"
}

itemDef
{
	name "background"
	rect 455 394 209 96
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor 1 1 1 .9
	style WINDOW_STYLE_SHADER
	background "ui/assets/alien/rl"
}

//BOOSTED
itemDef
{
	name "boosted"
	rect 450 409 29 47
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor .54 .11 .17 .4
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0
	background "ui/assets/alien/poison"
	ownerdraw CG_PLAYER_BOOSTED
}

//HEALTH
itemDef
{
	name "health"
	rect 30 431 70 20
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
		textalign ALIGN_RIGHT
	decoration
	forecolor .94 .13 .1  1
	ownerdraw CG_PLAYER_HEALTH
}

//CROSS
itemDef
{
	name "cross"
	rect 105 428 30 30
	aspectBias ALIGN_LEFT
	visible MENU_TRUE
	decoration
	forecolor .94 .13 .1  .5
	ownerdraw CG_PLAYER_HEALTH_CROSS
}

/*
itemDef
{
	name "cross2"
	rect 279 449 15 15
	aspectBias ALIGN_CENTER
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	backColor 0 0 0 0
	background "ui/assets/neutral/cross"
	style WINDOW_STYLE_SHADER
}

itemDef
{
	name "cross3"
	rect 283 437 15 15
	aspectBias ALIGN_CENTER
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	backColor 0 0 0 0
	background "ui/assets/neutral/cross"
	style WINDOW_STYLE_SHADER
}
*/

itemDef
{
	name "alien-icon"
	rect 568 422 40 40
	aspectBias ALIGN_RIGHT
	visible MENU_TRUE
	decoration
	forecolor .87 .01 .07 .5
	ownerdraw CG_PLAYER_WEAPONICON
}

itemDef
{
	name "credits"
	rect 510 460 40 15
	aspectBias ALIGN_RIGHT
	textAlign  ALIGN_LEFT
	visible MENU_TRUE
	textScale 0.4
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1
	ownerdraw CG_PLAYER_ALIEN_EVOS
}

itemDef
{
	name "creditstext"
	type ITEM_TYPE_TEXT
	text "morph points"
	style WINDOW_STYLE_EMPTY
	aspectBias ALIGN_RIGHT
	textAlign  ALIGN_RIGHT
	textstyle ITEM_TEXTSTYLE_PLAIN
	rect 580 460 50 15
	textscale .35
	forecolor .51 .51 .51 1
	visible MENU_TRUE
	decoration
}

itemDef
{
	name "aliensense"
	rect 20 20 600 400
	visible MENU_TRUE
	decoration
	ownerdraw CG_PLAYER_ALIEN_SENSE
}

itemDef
{
	name "charge"
	rect 154 464 332 12
	aspectBias ALIGN_CENTER
	visible MENU_TRUE
	decoration
	forecolor 1.0 1.0 1.0 0.25
	ownerdraw CG_PLAYER_CHARGE_BAR
	background "ui/assets/human/buildstat/health"
}

/*
temDef
{
	name "chargebg"
	rect 288 422 64 16
	aspectBias ALIGN_CENTER
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.25
	ownerdraw CG_PLAYER_CHARGE_BAR_BG
	background "ui/assets/neutral/charge_bg_h"
}
*/

itemDef
{
	name "teamoverlay"
	rect BORDER 175 250 128
	style WINDOW_STYLE_EMPTY
	visible MENU_TRUE
	decoration
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.5
	textscale 0.85
	ownerdraw CG_TEAMOVERLAY
}

itemDef
{
	name "momentumbar"
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B .25
	backcolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B .2
	rect 154 464 332 12
	aspectBias ALIGN_CENTER
	decoration
	visible MENU_TRUE
	ownerdraw CG_MOMENTUM_BAR
}

itemDef
{
	name "unlocked"
	forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 1 // enabled item
	backcolor ( COMMON_HUD_R / 2 + 0.25 ) ( COMMON_HUD_G / 2 + 0.25 ) ( COMMON_HUD_B / 2 + 0.25 ) 0.5 // disabled item
	rect 154 440 332 20 // bottom
	aspectBias ALIGN_CENTER
	decoration
	visible MENU_TRUE
	ownerdraw CG_UNLOCKED_ITEMS
}

itemDef
{
	name "crosshairhealth"
	rect 305 250 30 10
	aspectBias ALIGN_CENTER
	visible MENU_TRUE
	decoration
	forecolor .48 .02 .03 .3
	cvarTest "hud_crosshairbars"
	showCvar {1}
	background "ui/assets/neutral/crescent_bottom"
	ownerdraw CG_PLAYER_HEALTH_METER
}
