# HG changeset patch # User Wuzzy # Date 1565887785 -7200 # Node ID ccac4e0472f981a7767623dedacfc0aa2e2f571b # Parent 1eb99a13964dc44336b59b3f48c10c11460f32c3 Improve Switch outline, add vector files diff -r 1eb99a13964d -r ccac4e0472f9 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Thu Aug 15 16:26:36 2019 +0200 +++ b/hedgewars/uGearsRender.pas Thu Aug 15 18:49:45 2019 +0200 @@ -1547,10 +1547,10 @@ Tint($FFFFFFFF) else Tint($000000FF); - DrawSprite(sprSwitchBack, x - 16, y - 56, (RealTicks shr 6) mod 12); + DrawSpriteRotatedF(sprSwitchBack, x, y - 40, 0, 0, (RealTicks shr 2) mod 360); Tint(Gear^.Hedgehog^.Team^.Clan^.Color shl 8 or $FF); - DrawSprite(sprSwitch, x - 16, y - 56, (RealTicks shr 6) mod 12); + DrawSpriteRotatedF(sprSwitch, x, y - 40, 0, 0, (RealTicks shr 2) mod 360); untint; setTintAdd(false); end; diff -r 1eb99a13964d -r ccac4e0472f9 hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Thu Aug 15 16:26:36 2019 +0200 +++ b/hedgewars/uVariables.pas Thu Aug 15 18:49:45 2019 +0200 @@ -467,9 +467,9 @@ (FileName: 'hhMask'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: true; critical: true; checkSum: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHHTelepMask (FileName: 'Switch'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprSwitch + Width: 40; Height: 40; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprSwitch (FileName: 'SwitchBack'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprSwitchBack + Width: 40; Height: 40; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprSwitchBack (FileName: 'Parachute'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; Width: 48; Height: 48; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprParachute (FileName: 'Target'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil; diff -r 1eb99a13964d -r ccac4e0472f9 share/hedgewars/Data/Graphics/Switch.png Binary file share/hedgewars/Data/Graphics/Switch.png has changed diff -r 1eb99a13964d -r ccac4e0472f9 share/hedgewars/Data/Graphics/Switch.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/share/hedgewars/Data/Graphics/Switch.svg Thu Aug 15 18:49:45 2019 +0200 @@ -0,0 +1,33 @@ + + + + + + + image/svg+xml + + + + + + + + diff -r 1eb99a13964d -r ccac4e0472f9 share/hedgewars/Data/Graphics/SwitchBack.png Binary file share/hedgewars/Data/Graphics/SwitchBack.png has changed diff -r 1eb99a13964d -r ccac4e0472f9 share/hedgewars/Data/Graphics/SwitchBack.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/share/hedgewars/Data/Graphics/SwitchBack.svg Thu Aug 15 18:49:45 2019 +0200 @@ -0,0 +1,33 @@ + + + + + + + image/svg+xml + + + + + + + +