# HG changeset patch # User sheepluva # Date 1389963107 -3600 # Node ID d657b6656c19f6534d4ebae56e6e9ed578da3736 # Parent 8f2dc49262c3d601fabe05cd0ac263601ab9ce35 position "finger"/pointer over current hog above tags diff -r 8f2dc49262c3 -r d657b6656c19 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Fri Jan 17 01:42:12 2014 +0100 +++ b/hedgewars/uGearsRender.pas Fri Jan 17 13:51:47 2014 +0100 @@ -929,8 +929,18 @@ DrawTextureCentered(ox, sy - cHHRadius - 7 - HealthTagTex^.h, HealthTagTex); if bShowFinger and ((Gear^.State and gstHHDriven) <> 0) then - DrawSprite(sprFinger, ox - 16, oy - 64, + begin + ty := oy - 56; + // move finger higher up if tags are above hog + if (cTagsMask and htTeamName) <> 0 then + ty := ty - Team^.NameTagTex^.h - 2; + if (cTagsMask and htName) <> 0 then + ty := ty - NameTagTex^.h - 2; + if (cTagsMask and htHealth) <> 0 then + ty := ty - HealthTagTex^.h - 2; + DrawSprite(sprFinger, ox - 16, ty, GameTicks div 32 mod 16); + end; if (Gear^.State and gstDrowning) = 0 then if (Gear^.State and gstHHThinking) <> 0 then