hedgewars/uWorld.pas
changeset 6806 cdfb6c7099e5
parent 6802 8701007d58c0
child 6862 87e060b69926
equal deleted inserted replaced
6805:097289be7200 6806:cdfb6c7099e5
   339     active.y:= frame.y;
   339     active.y:= frame.y;
   340     active.w:= frame.w;
   340     active.w:= frame.w;
   341     active.h:= frame.h;
   341     active.h:= frame.h;
   342     end;
   342     end;
   343 
   343 
       
   344 with utilityWidget do
       
   345     begin
       
   346     show:= false;
       
   347     sprite:= sprTimerButton;
       
   348     frame.w:= Round(spritesData[sprite].Texture^.w * buttonScale);
       
   349     frame.h:= Round(spritesData[sprite].Texture^.h * buttonScale);
       
   350     frame.x:= arrowLeft.frame.x;
       
   351     frame.y:= arrowLeft.frame.y - Round(frame.h * 1.25);
       
   352     active.x:= frame.x;
       
   353     active.y:= frame.y;
       
   354     active.w:= frame.w;
       
   355     active.h:= frame.h;
       
   356     with moveAnim do
       
   357         begin
       
   358         target.x:= frame.x;
       
   359         target.y:= frame.y;
       
   360         source.x:= frame.x;
       
   361         source.y:= frame.y;
       
   362         end;
       
   363     end;
   344 {$ENDIF}
   364 {$ENDIF}
   345 end;
   365 end;
   346 
   366 
   347 // for uStore texture resetting
   367 // for uStore texture resetting
   348 procedure ResetWorldTex;
   368 procedure ResetWorldTex;
   666                     if arrowUp.show then
   686                     if arrowUp.show then
   667                         begin
   687                         begin
   668                         animateWidget(@arrowUp, true, false);
   688                         animateWidget(@arrowUp, true, false);
   669                         animateWidget(@arrowDown, true, false);
   689                         animateWidget(@arrowDown, true, false);
   670                         end;
   690                         end;
       
   691                 if (Ammo^[Slot, Pos].Propz and ammoprop_Timerable) <> 0 then
       
   692                     begin
       
   693                     if not utilityWidget.show then
       
   694                         animateWidget(@utilityWidget, true, true); 
       
   695                     end
       
   696                 else
       
   697                     if utilityWidget.show then
       
   698                         animateWidget(@utilityWidget, true, false); 
   671 {$ENDIF}
   699 {$ENDIF}
   672 
   700 
   673                 exit
   701                 exit
   674                 end;
   702                 end;
   675             end
   703             end
  1224 
  1252 
  1225 DrawScreenWidget(@fireButton);
  1253 DrawScreenWidget(@fireButton);
  1226 DrawScreenWidget(@jumpWidget);
  1254 DrawScreenWidget(@jumpWidget);
  1227 DrawScreenWidget(@AMWidget);
  1255 DrawScreenWidget(@AMWidget);
  1228 DrawScreenWidget(@pauseButton);
  1256 DrawScreenWidget(@pauseButton);
       
  1257 DrawScreenWidget(@utilityWidget);
  1229 {$ENDIF}
  1258 {$ENDIF}
  1230 
  1259 
  1231 // Teams Healths
  1260 // Teams Healths
  1232 if TeamsCount * 20 > Longword(cScreenHeight) div 7 then  // take up less screen on small displays
  1261 if TeamsCount * 20 > Longword(cScreenHeight) div 7 then  // take up less screen on small displays
  1233     begin
  1262     begin