# HG changeset patch # User Wuzzy # Date 1557970884 -7200 # Node ID cf21a45a62bd409102a472878b9a4bd867ed6874 # Parent bcecb3349948e2e00d3f2ee0c6497a24676a4efb Make health HUD icon green if hog poisoned diff -r bcecb3349948 -r cf21a45a62bd hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Thu May 16 02:07:29 2019 +0200 +++ b/hedgewars/uTypes.pas Thu May 16 03:41:24 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 + sprHealthHud, sprHealthPoisonHud ); // Gears that interact with other Gears and/or Land diff -r bcecb3349948 -r cf21a45a62bd hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Thu May 16 02:07:29 2019 +0200 +++ b/hedgewars/uVariables.pas Thu May 16 03:41:24 2019 +0200 @@ -825,7 +825,9 @@ (FileName: 'TargetpBackInv'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprTargetPBackInv (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 + 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 ); diff -r bcecb3349948 -r cf21a45a62bd hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Thu May 16 02:07:29 2019 +0200 +++ b/hedgewars/uWorld.pas Thu May 16 03:41:24 2019 +0200 @@ -1597,7 +1597,10 @@ i:= t + pauseButton.frame.y + pauseButton.frame.h; {$ENDIF} DrawTexture(cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 16, i, CurrentHedgehog^.HealthTagTex); - DrawSprite(sprHealthHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0); + if (CurrentHedgehog^.Effects[hePoisoned] > 0) then + DrawSprite(sprHealthPoisonHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0) + else + DrawSprite(sprHealthHud, (cScreenWidth div 2 - CurrentHedgehog^.HealthTagTex^.w - 36), i, 0); inc(t, CurrentHedgehog^.HealthTagTex^.h); cDemoClockFPSOffsetY:= t; end diff -r bcecb3349948 -r cf21a45a62bd share/hedgewars/Data/Graphics/HealthPoisonHUD.png Binary file share/hedgewars/Data/Graphics/HealthPoisonHUD.png has changed