Show vampirism icon when vampirism is active
authorWuzzy <Wuzzy2@mail.ru>
Thu, 16 May 2019 04:02:09 +0200
changeset 14971 5a9d203f7c82
parent 14970 cf21a45a62bd
child 14972 9939134b566d
Show vampirism icon when vampirism is active
hedgewars/uTypes.pas
hedgewars/uVariables.pas
hedgewars/uWorld.pas
share/hedgewars/Data/Graphics/VampHUD.png
--- a/hedgewars/uTypes.pas	Thu May 16 03:41:24 2019 +0200
+++ b/hedgewars/uTypes.pas	Thu May 16 04:02:09 2019 +0200
@@ -93,7 +93,7 @@
             sprCustom5, sprCustom6, sprCustom7, sprCustom8, sprFrozenAirMine, sprAirMine, sprHandAirMine,
             sprFlakeL, sprSDFlakeL, sprCloudL, sprSDCloudL, sprCreeper, sprHandCreeper, sprMinigun,
             sprSliderInverted, sprFingerBack, sprFingerBackInv, sprTargetPBack, sprTargetPBackInv,
-            sprHealthHud, sprHealthPoisonHud
+            sprHealthHud, sprHealthPoisonHud, sprVampHud
             );
 
     // Gears that interact with other Gears and/or Land
--- a/hedgewars/uVariables.pas	Thu May 16 03:41:24 2019 +0200
+++ b/hedgewars/uVariables.pas	Thu May 16 04:02:09 2019 +0200
@@ -827,7 +827,9 @@
             (FileName:    'HealthHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHealthHud
             (FileName:    'HealthPoisonHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
-            Width:  18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprHealthPoisonHud
+            Width:  18; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHealthPoisonHud
+            (FileName:    'VampHUD'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  24; Height: 18; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprVampHUD
             );
 
 
--- a/hedgewars/uWorld.pas	Thu May 16 03:41:24 2019 +0200
+++ b/hedgewars/uWorld.pas	Thu May 16 04:02:09 2019 +0200
@@ -1601,6 +1601,8 @@
         DrawSprite(sprHealthPoisonHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0)
     else
         DrawSprite(sprHealthHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0);
+    if cVampiric then
+        DrawSprite(sprVampHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 62), i, 0);
     inc(t, CurrentHedgehog^.HealthTagTex^.h);
     cDemoClockFPSOffsetY:= t;
     end
Binary file share/hedgewars/Data/Graphics/VampHUD.png has changed