
// ===================================
//
//      SBARINFO Definition Patch
//
// ===================================

height 32;
monospacefonts true, "0";

StatusBar Normal // CLASSIC HUD
{
    DrawImage "c_hudc", -160, 168;
	//drawmugshot 5, disablerampage, 160, 170;

    DrawNumber 3, BIGFONT , white, ammo1, alignment(center), 24, 175;
	//DrawNumber 3, SMALLFONT , white, ammo2, alignment(center), 24, 169;
    DrawNumber 3, BIGFONT , white, health, alignment(center), 77, 175;
    DrawNumber 3, BIGFONT , white, armor, alignment(center), 208, 175;

    //Keys
    drawswitchableimage keyslot 2 && 5, "nullimage", "c_hudbl1", "c_hudbl2", "c_hudbl3", 239, 171;
    drawswitchableimage keyslot 3 && 6, "nullimage", "c_hudyw1", "c_hudyw2", "c_hudyw3", 239, 181;
    drawswitchableimage keyslot 1 && 4, "nullimage", "c_hudrd1", "c_hudrd2", "c_hudrd3", 239, 191;

	//Ammo

	drawnumber 3, INDEXFONT, white, ammo Clip, 294, 173;
	drawnumber 3, INDEXFONT, white, ammo Shell, 294, 179;
    drawnumber 3, INDEXFONT, white, ammo RocketAmmo, 294, 185;
    drawnumber 3, INDEXFONT, white, ammo Cell, 294, 191;


	drawnumber 3, INDEXFONT, white, ammocapacity Clip, 315, 173;
	drawnumber 3, INDEXFONT, white, ammocapacity Clip, 315, 173;
    drawnumber 3, INDEXFONT, white, ammocapacity Shell, 315, 179;
    drawnumber 3, INDEXFONT, white, ammocapacity RocketAmmo, 315, 185;
    drawnumber 3, INDEXFONT, white, ammocapacity Cell, 315, 191;

    gamemode deathmatch, teamgame
    {
        drawnumber 2, BIGFONT, white, frags, 138, 171;
    }

    gamemode cooperative, singleplayer
    {
        drawimage "c_hudgn", 108, 168;
        drawswitchableimage weaponslot 2, "c_hudcn2", "c_hudca2", 110, 172;
        drawswitchableimage weaponslot 3, "c_hudcn3", "c_hudca3", 122, 172;
        drawswitchableimage weaponslot 4, "c_hudcn4", "c_hudca4", 134, 172;
        drawswitchableimage weaponslot 5, "c_hudcn5", "c_hudca5", 110, 182;
        drawswitchableimage weaponslot 6, "c_hudcn6", "c_hudca6", 122, 182;
        drawswitchableimage weaponslot 7, "c_hudcn7", "c_hudca7", 134, 182;
    }
	drawselectedinventory alternateonempty, INDEXFONT, 143, 168, 178, 192, white
	{
		drawmugshot 5, disablerampage, 160, 170;
	}
 }

resolution 320, 200;

StatusBar Fullscreen, FullscreenOffsets // ALPHA HUD
{
	//Health
		drawImage "a_hudhea", 30, -46;
		drawBar "a_hltbar", "a_bkgbar", health(100), horizontal, interpolate(128), 80, -43;
		drawBar "a_hl2bar", "a_bigbkg", health(200), horizontal, interpolate(128), 80, -43;
		drawNumber 5, CONFONT, white, health, alignment(center), interpolate(512), 80, -44;

	InInventory BasicArmor, 1
	{
	//Armor
		drawImage "a_hudarm", 9, -59;
		drawBar "a_armbar", "a_bkgbar", armor(100), horizontal, interpolate(128), 59, -56;
		drawBar "a_ar2bar", "a_bigbkg", armor(200), horizontal, interpolate(128), 59, -56;
		drawNumber 5, CONFONT, white, armor, alignment(center), interpolate(512), 58, -57;
		//drawImage armoricon, 16, -54;
	}

	UsesAmmo
	{
	//Ammo
		drawImage "a_hudpri", -68, -20, centerbottom;
		drawBar "a_ammbar", "a_bkgbar", ammo1, horizontal, interpolate(128), -77, -43;
		InInventory BackpackItem || Backpack, 1
		{
			drawBar "a_am2bar", "a_bkgbar", ammo1, horizontal, interpolate(128), -77, -43;
		}
		drawNumber 5, CONFONT, White, ammo1, alignment(center), interpolate(512), -80, -44;
	}
	UsesSecondaryAmmo
	{
		drawImage "a_hudalt", -47, -33, centerbottom;
		drawBar "a_ammbar", "a_bkgbar", ammo2, horizontal, interpolate(128), -56, -56;
		InInventory BackpackItem || Backpack, 1
		{
			drawBar "a_am2bar", "a_bkgbar", ammo2, horizontal, interpolate(128), -56, -56;
		}
		drawNumber 5, CONFONT, White, ammo2, alignment(center), interpolate(512), -60, -57;
	}

	inventorybarnotvisible
	{
		drawselectedinventory center, drawshadow, alwaysshowcounter, INDEXFONT, 0 + center, 32, 16 + center, 32, white;
	}

	//DrawBar

	drawImage "a_HUDKEY", -26, -61, centerbottom;
	drawSwitchableImage keyslot 1 && 4, "", "a_HUDRD1", "a_HUDRD2", "a_HUDRD3", -20, -79, centerbottom;

    drawSwitchableImage keyslot 2 && 5, "", "a_HUDBL1", "a_HUDBL2", "a_HUDBL3", -32, -72, centerbottom;
    drawSwitchableImage keyslot 3 && 6, "", "a_HUDYW1", "a_HUDYW2", "a_HUDYW3", -20, -65, centerbottom;

    //drawImage "F_HUDM", 32, -61, centerbottom;
    drawMugshot 5, disablerampage, 0 + center, -42;
}

statusbar inventory // Standard bar overlay (ZDoom Addition)
{
	drawinventorybar Strife, 6, INDEXFONT, 50, 170;
}

statusbar inventoryfullscreen, fullscreenoffsets // ZDoom HUD overlay.
{
	drawinventorybar Strife, translucent, 6, INDEXFONT, -111+center, 16;
}

/*

rage spark was here
   _____,,;;;`;       ;';;;,,_____
,~(  )  , )~~\|       |/~~( ,  (  )~;
' / / --`--,             .--'-- \ \ `
 /  \    | '             ` |    /  \

*/