- Replaced medikit with mugshot in HUD.

This commit is contained in:
drfrag666 2018-07-08 00:51:59 +02:00
parent 4902143d7b
commit 5a5d2593a5
2 changed files with 18 additions and 10 deletions

View file

@ -15,12 +15,16 @@ monospacefonts true, "0";
statusbar fullscreen, fullscreenoffsets // ZDoom HUD
{
//health
drawimage "MEDIA0", 20, -2, centerbottom;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, health, drawshadow, 82, -20;
//drawimage "MEDIA0", 20, -2, centerbottom;
//drawnumber 2147483647, HUDFONT_DOOM, untranslated, health, drawshadow, 82, -20;
drawmugshot "STF", 5, 3, -34;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, health, drawshadow, 82, -25;
//armor
drawimage armoricon, 20, -24, centerbottom;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, armor, drawshadow, whennotzero, 82, -39;
//drawimage armoricon, 20, -24, centerbottom;
//drawnumber 2147483647, HUDFONT_DOOM, untranslated, armor, drawshadow, whennotzero, 82, -39;
drawimage armoricon, 20, -35, centerbottom;
drawnumber 2147483647, HUDFONT_DOOM, untranslated, armor, drawshadow, whennotzero, 82, -51;
//ammo
drawimage ammoicon1, -14, -4, centerbottom;

View file

@ -128,15 +128,19 @@ class DoomStatusBar : BaseStatusBar
{
Vector2 iconbox = (40, 20);
// Draw health
let berserk = CPlayer.mo.FindInventory("PowerStrength");
DrawImage(berserk? "PSTRA0" : "MEDIA0", (20, -2));
DrawString(mHUDFont, FormatNumber(CPlayer.health, 3), (44, -20));
//let berserk = CPlayer.mo.FindInventory("PowerStrength");
//DrawImage(berserk? "PSTRA0" : "MEDIA0", (20, -2));
//DrawString(mHUDFont, FormatNumber(CPlayer.health, 3), (44, -20));
DrawTexture(GetMugShot(5), (3, -34), DI_ITEM_OFFSETS);
DrawString(mHUDFont, FormatNumber(CPlayer.health, 3), (44, -25));
let armor = CPlayer.mo.FindInventory("BasicArmor");
if (armor != null && armor.Amount > 0)
{
DrawInventoryIcon(armor, (20, -22));
DrawString(mHUDFont, FormatNumber(armor.Amount, 3), (44, -40));
//DrawInventoryIcon(armor, (20, -22));
//DrawString(mHUDFont, FormatNumber(armor.Amount, 3), (44, -40));
DrawInventoryIcon(armor, (20, -35));
DrawString(mHUDFont, FormatNumber(armor.Amount, 3), (44, -51));
}
Inventory ammotype1, ammotype2;
[ammotype1, ammotype2] = GetCurrentAmmo();