# HG changeset patch # User antonc27 # Date 1444939110 -7200 # Node ID 22f2e072d31e38ec5a9442f7123ee6467b1f51d7 # Parent e3bce5a79207ff6a8df9f5e5775eb9d1f5ba9669 - Target button added to mobile touch controls Note: Maybe also need to add it to HedgeEditor, dunno... diff -r e3bce5a79207 -r 22f2e072d31e hedgewars/uTypes.pas --- 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, diff -r e3bce5a79207 -r 22f2e072d31e hedgewars/uVariables.pas --- 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 diff -r e3bce5a79207 -r 22f2e072d31e hedgewars/uWorld.pas --- 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 diff -r e3bce5a79207 -r 22f2e072d31e project_files/Android-build/SDL-android-project/assets/Data/Graphics/Buttons/switchbutton.png Binary file project_files/Android-build/SDL-android-project/assets/Data/Graphics/Buttons/switchbutton.png has changed