# HG changeset patch # User Henek # Date 1293585337 -3600 # Node ID 02370ca8e92c0c0a8281829058db3993f6fc4d4a # Parent 375d819fca935ce355ee0b51e09dc849157c1a9e sudden death: now having theme support, still some work though with config diff -r 375d819fca93 -r 02370ca8e92c hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Tue Dec 28 20:04:42 2010 -0500 +++ b/hedgewars/uTypes.pas Wed Dec 29 02:15:37 2010 +0100 @@ -52,7 +52,7 @@ sprCheese, sprHandCheese, sprHandFlamethrower, sprChunk, sprNote, sprSMineOff, sprSMineOn, sprHandSMine, sprHammer, sprHandResurrector, sprCross, sprAirDrill, sprNapalmBomb, - sprBulletHit, sprSnowball, sprHandSnowball, sprSnow, sprSDFlake, sprSDWater + sprBulletHit, sprSnowball, sprHandSnowball, sprSnow, sprSDFlake, sprSDWater, sprSDCloud ); // Gears that interact with other Gears and/or Land diff -r 375d819fca93 -r 02370ca8e92c hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Tue Dec 28 20:04:42 2010 -0500 +++ b/hedgewars/uVariables.pas Wed Dec 29 02:15:37 2010 +0100 @@ -562,10 +562,12 @@ Width: 64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprHandSnowball (FileName: 'Snow'; Path: ptCurrTheme; AltPath: ptGraphics; Texture: nil; Surface: nil; Width: 4; Height: 4; imageWidth: 0; imageHeight: 0; saveSurf: true; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprSnow - (FileName: 'Flake'; Path: ptSuddenDeath; AltPath: ptNone; Texture: nil; Surface: nil; + (FileName: 'SDFlake'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil; Width: 64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHighest; getDimensions: false; getImageDimensions: true),// sprSDFlake - (FileName: 'BlueWater'; Path: ptSuddenDeath; AltPath: ptNone; Texture: nil; Surface: nil; - Width: 0; Height: 0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: true; getImageDimensions: true) // sprSDWater + (FileName: 'SDWater'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil; + Width: 0; Height: 0; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpMedium; getDimensions: true; getImageDimensions: true),// sprSDWater + (FileName: 'SDClouds'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil; + Width: 256; Height:128; imageWidth: 0; imageHeight: 0; saveSurf: false; priority: tpHigh; getDimensions: false; getImageDimensions: true) // sprSDCloud ); diff -r 375d819fca93 -r 02370ca8e92c hedgewars/uVisualGears.pas --- a/hedgewars/uVisualGears.pas Tue Dec 28 20:04:42 2010 -0500 +++ b/hedgewars/uVisualGears.pas Wed Dec 29 02:15:37 2010 +0100 @@ -392,7 +392,10 @@ DrawRotatedF(sprSDFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle) else DrawRotatedF(sprFlake, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame, 1, Gear^.Angle); - vgtCloud: DrawSprite(sprCloud, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame); + vgtCloud: if SuddenDeathDmg then + DrawSprite(sprSDCloud, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame) + else + DrawSprite(sprCloud, round(Gear^.X) + WorldDx, round(Gear^.Y) + WorldDy + SkyOffset, Gear^.Frame); end; if Gear^.Tint <> $FFFFFFFF then Tint($FF,$FF,$FF,$FF); Gear:= Gear^.NextGear diff -r 375d819fca93 -r 02370ca8e92c share/hedgewars/Data/Graphics/SuddenDeath/BlueWater.png Binary file share/hedgewars/Data/Graphics/SuddenDeath/BlueWater.png has changed diff -r 375d819fca93 -r 02370ca8e92c share/hedgewars/Data/Graphics/SuddenDeath/Flake.png Binary file share/hedgewars/Data/Graphics/SuddenDeath/Flake.png has changed diff -r 375d819fca93 -r 02370ca8e92c share/hedgewars/Data/Graphics/SuddenDeath/SDClouds.png Binary file share/hedgewars/Data/Graphics/SuddenDeath/SDClouds.png has changed diff -r 375d819fca93 -r 02370ca8e92c share/hedgewars/Data/Graphics/SuddenDeath/SDFlake.png Binary file share/hedgewars/Data/Graphics/SuddenDeath/SDFlake.png has changed diff -r 375d819fca93 -r 02370ca8e92c share/hedgewars/Data/Graphics/SuddenDeath/SDWater.png Binary file share/hedgewars/Data/Graphics/SuddenDeath/SDWater.png has changed