- Target button added to mobile touch controls ios-revival
authorantonc27 <antonc27@mail.ru>
Thu, 15 Oct 2015 21:58:30 +0200
branchios-revival
changeset 11210 22f2e072d31e
parent 11209 e3bce5a79207
child 11211 1fa57188a469
- Target button added to mobile touch controls Note: Maybe also need to add it to HedgeEditor, dunno...
hedgewars/uTypes.pas
hedgewars/uVariables.pas
hedgewars/uWorld.pas
project_files/Android-build/SDL-android-project/assets/Data/Graphics/Buttons/switchbutton.png
--- a/hedgewars/uTypes.pas	Thu Oct 15 21:13:43 2015 +0200
+++ b/hedgewars/uTypes.pas	Thu Oct 15 21:58:30 2015 +0200
@@ -61,6 +61,7 @@
 {$IFDEF USE_TOUCH_INTERFACE}
             sprFireButton, sprArrowUp, sprArrowDown, sprArrowLeft, sprArrowRight,
             sprJumpWidget, sprAMWidget, sprPauseButton, sprTimerButton, sprTargetButton,
+            sprSwitchButton,
 {$ENDIF}
             sprFlake, sprHandRope, sprHandBazooka, sprHandShotgun,
             sprHandDEagle, sprHandAirAttack, sprHandBaseball, sprPHammer,
--- a/hedgewars/uVariables.pas	Thu Oct 15 21:13:43 2015 +0200
+++ b/hedgewars/uVariables.pas	Thu Oct 15 21:58:30 2015 +0200
@@ -445,6 +445,8 @@
             Width: 128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true), // sprTimerButton
             (FileName: 'targetbutton'; Path: ptButtons; AltPath: ptNone; Texture: nil; Surface: nil;
             Width: 128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true), // sprTargetButton
+            (FileName: 'switchbutton'; Path: ptButtons; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width: 128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true), // sprSwitchButton
 {$ENDIF}
             (FileName:      'Flake'; Path:ptCurrTheme; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprFlake
--- a/hedgewars/uWorld.pas	Thu Oct 15 21:13:43 2015 +0200
+++ b/hedgewars/uWorld.pas	Thu Oct 15 21:58:30 2015 +0200
@@ -1942,7 +1942,7 @@
         end
     else if ammoType = amSwitch then
         begin
-        utilityWidget.sprite:= sprTargetButton;
+        utilityWidget.sprite:= sprSwitchButton;
         animateWidget(@utilityWidget, true, true);
         end
     else if utilityWidget.show then
Binary file project_files/Android-build/SDL-android-project/assets/Data/Graphics/Buttons/switchbutton.png has changed