# HG changeset patch # User unc0rr # Date 1200674426 0 # Node ID 6ee55ba9c8fe8eb92343502aea0a3e5142569660 # Parent 0a00c16022ca40bc170c7cddcc4c1c13930b4e3e New animated switching sign diff -r 0a00c16022ca -r 6ee55ba9c8fe hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Thu Jan 17 11:23:37 2008 +0000 +++ b/hedgewars/uConsts.pas Fri Jan 18 16:40:26 2008 +0000 @@ -310,25 +310,25 @@ (FileName: 'hhMask'; Path: ptGraphics; AltPath: ptNone; Surface: nil; Width: 32; Height: 32; hasAlpha: false),// sprHHTelepMask (FileName: 'Switch'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 32; Height: 32; hasAlpha: false),// sprSwitch + Width: 32; Height: 32; hasAlpha: true),// sprSwitch (FileName: 'Parachute'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 48; Height: 48; hasAlpha: true),// sprParachute + Width: 48; Height: 48; hasAlpha: true),// sprParachute (FileName: 'Target'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 32; Height: 32; hasAlpha:false),// sprTarget + Width: 32; Height: 32; hasAlpha: false),// sprTarget (FileName: 'RopeNode'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 6; Height: 6; hasAlpha:false),// sprRopeNode + Width: 6; Height: 6; hasAlpha: false),// sprRopeNode (FileName: 'Console'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 256; Height:256; hasAlpha:false),// sprConsoleBG + Width: 256; Height:256; hasAlpha: false),// sprConsoleBG (FileName: 'thinking'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 32; Height: 32; hasAlpha:false),// sprQuestion + Width: 32; Height: 32; hasAlpha: false),// sprQuestion (FileName: 'PowerBar'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 256; Height: 32; hasAlpha:false),// sprPowerBar + Width: 256; Height: 32; hasAlpha: false),// sprPowerBar (FileName: 'WindBar'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 151; Height: 17; hasAlpha:false),// sprWindBar + Width: 151; Height: 17; hasAlpha: false),// sprWindBar (FileName: 'WindL'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 80; Height: 13; hasAlpha:false),// sprWindL + Width: 80; Height: 13; hasAlpha: false),// sprWindL (FileName: 'WindR'; Path: ptGraphics; AltPath: ptNone; Surface: nil; - Width: 80; Height: 13; hasAlpha:false) // sprWindR + Width: 80; Height: 13; hasAlpha: false) // sprWindR ); Soundz: array[TSound] of record diff -r 0a00c16022ca -r 6ee55ba9c8fe hedgewars/uGears.pas --- a/hedgewars/uGears.pas Thu Jan 17 11:23:37 2008 +0000 +++ b/hedgewars/uGears.pas Fri Jan 18 16:40:26 2008 +0000 @@ -620,7 +620,7 @@ gtAirAttack: if Gear^.Tag > 0 then DrawSprite(sprAirplane, hwRound(Gear^.X) - 60 + WorldDx, hwRound(Gear^.Y) - 25 + WorldDy, 0, Surface) else DrawSprite(sprAirplane, hwRound(Gear^.X) - 60 + WorldDx, hwRound(Gear^.Y) - 25 + WorldDy, 1, Surface); gtAirBomb: DrawSprite(sprAirBomb , hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, DxDy2Angle32(Gear^.dY, Gear^.dX), Surface); - gtSwitcher: DrawSprite(sprSwitch, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 56 + WorldDy, 0, Surface); + gtSwitcher: DrawSprite(sprSwitch, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 56 + WorldDy, (GameTicks shr 6) mod 12, Surface); gtTarget: DrawSprite(sprTarget, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0, Surface); end; Gear:= Gear^.NextGear diff -r 0a00c16022ca -r 6ee55ba9c8fe misc/switch.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/switch.svg Fri Jan 18 16:40:26 2008 +0000 @@ -0,0 +1,98 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff -r 0a00c16022ca -r 6ee55ba9c8fe share/hedgewars/Data/Graphics/Switch.png Binary file share/hedgewars/Data/Graphics/Switch.png has changed