hedgewars/uVisualGears.pas
changeset 9764 8dc9d268330f
parent 9762 938d1c08d0d1
child 9768 08799c901a42
equal deleted inserted replaced
9763:be63ead5085e 9764:8dc9d268330f
   245                              if vobVelocity = 0 then
   245                              if vobVelocity = 0 then
   246                                  DrawSprite(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame)
   246                                  DrawSprite(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame)
   247                              else
   247                              else
   248                                  DrawSpriteRotatedF(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle);*)
   248                                  DrawSpriteRotatedF(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle);*)
   249                vgtSpeechBubble: begin
   249                vgtSpeechBubble: begin
   250                                 if (Gear^.Tex <> nil) and (Gear^.State <= 2) then
   250                                 if (Gear^.Tex <> nil) and (((Gear^.State = 0) and (Gear^.Hedgehog^.Team <> CurrentTeam)) or (Gear^.State = 1)) then
   251                                     begin
   251                                     begin
   252                                     // make speech bubbles of inactive teams' hogs transparent
   252                                     tinted:= true;
   253                                     if ((Gear^.State = 0) and (Gear^.Hedgehog^.Team <> CurrentTeam)) or (Gear^.State = 1) then
   253                                     Tint($FF, $FF, $FF,  $66);
   254                                         begin
   254                                     DrawTextureCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex)
   255                                         tinted:= true;
   255                                     end
   256                                         Tint($FF, $FF, $FF,  $66);
   256                                 else if (Gear^.Tex <> nil) and (((Gear^.State = 0) and (Gear^.Hedgehog^.Team = CurrentTeam)) or (Gear^.State = 2)) then
   257                                         end;
   257                                     DrawTextureCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex);
   258                                     DrawTextureCentered(round(Gear^.X), round(Gear^.Y), Gear^.Tex);
       
   259                                     end;
       
   260                                 end;
   258                                 end;
   261                vgtSmallDamageTag: DrawTextureCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex);
   259                vgtSmallDamageTag: DrawTextureCentered(round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy, Gear^.Tex);
   262                vgtHealthTag: if Gear^.Tex <> nil then 
   260                vgtHealthTag: if Gear^.Tex <> nil then 
   263                                begin
   261                                begin
   264                                if Gear^.Frame = 0 then 
   262                                if Gear^.Frame = 0 then