hedgewars/uWorld.pas
changeset 6685 ef706fccfb0a
parent 6683 75a1d84ac606
child 6688 b2084a00a4cf
--- a/hedgewars/uWorld.pas	Wed Feb 15 18:03:51 2012 +0100
+++ b/hedgewars/uWorld.pas	Wed Feb 15 18:22:39 2012 +0100
@@ -261,6 +261,14 @@
 arrowDown.height:= Round(spritesData[sprArrowDown].Texture^.h * buttonScale);
 arrowDown.hOffset:= 0;
 arrowDown.vOffset:= 0;
+
+pauseButton.x:= cScreenWidth div 2 - Round(spritesData[sprPauseButton].Texture^.w * buttonscale);
+pauseButton.y:= 0; //-Round(spritesData[sprPauseButton].Texture^.h * buttonscale);
+pauseButton.width:= Round(spritesData[sprPauseButton].Texture^.w * buttonScale);;
+pauseButton.height:= Round(spritesData[sprPauseButton].Texture^.h * buttonScale);;
+pauseButton.hOffset:= 0;
+pauseButton.vOffset:= 0;
+
 {$ENDIF}
 end;
 
@@ -1077,7 +1085,7 @@
 SetScale(cDefaultZoomLevel);
 
 // Turn time
-{$IFDEF MOBILE}
+{$IFDEF USE_TOUCH_INTERFACE}
 offsetX:= cScreenHeight - 13;
 {$ELSE}
 offsetX:= 48;
@@ -1119,6 +1127,7 @@
 DrawTexture(fireButton.x, firebutton.y, spritesData[sprFireButton].Texture, buttonScale);
 DrawTexture(backjump.x, backjump.y, spritesData[sprBackjump].Texture, buttonScale);
 DrawTexture(forwardjump.x, forwardjump.y, spritesData[sprForwardjump].Texture, buttonScale);
+DrawTexture(pauseButton.x, pauseButton.y, spritesData[sprPauseButton].Texture, buttonScale);
 {$ENDIF}
 
 // Teams Healths
@@ -1207,7 +1216,7 @@
     DrawSprite(sprLag, 32 - (cScreenWidth shr 1), 32, (RealTicks shr 7) mod 12);
 
 // Wind bar
-{$IFDEF MOBILE}
+{$IFDEF USE_TOUCH_INTERFACE}
     offsetX:= cScreenHeight - 13;
     offsetY:= (cScreenWidth shr 1) + 74;
 {$ELSE}
@@ -1264,8 +1273,8 @@
     end;
 
 // fps
-{$IFDEF MOBILE}
-offsetX:= 8;
+{$IFDEF USE_TOUCH_INTERFACE}
+offsetX:= pauseButton.y + pauseButton.height + 12;
 {$ELSE}
 offsetX:= 10;
 {$ENDIF}