Sudden Death theme colors

4 replies [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 9 hours 49 min ago. Offline
Joined: 06/20/2012
Posts: 117

I just wanted to ask some questions about the theme configuration and related stuff:

  1. I know that sd-water-top and sd-water-bottom (for example) changes the water color in sudden death. But no matter what values I enter, the very top of the water (the waves) always have the default purple color. How do I change this, too?
  2. How do I change change the sky (background) color in sudden death?
  3. How do I change the sudden death flakes?
  4. Are there any more configuration possibilities for Sudden Death I just don't know? Which ones?
  5. Where do I find a more accurate documentation for themes in general? The guides I know are:
  6. All these guides seem to be very incomplete or outdated for me, because I've seen some themes that contain stuff that appear in none of these guides. For example no guide
    even mentions files that have "@2x" in their name and lots other stuff where I can't find any documentation for that.
Star and Moon
Star and Moon's picture
User offline. Last seen 1 hour 44 min ago. Offline
Joined: 04/03/2010
Posts: 562

If you would like to change the sudden death flakes in a specific theme, put the graphic(s) in a file (the same dimensions as regular flake.png) called SDflake.png in that theme's folder.

You can probably do the same with water and clouds but I'm not 100% sure.

nemo
User offline. Last seen 7 hours 31 min ago. Offline
Joined: 01/28/2009
Posts: 993

sd-clouds
sd-flakes
sd-water-bottom
sd-water-top
sd-water-opacity

Wuzzy
Wuzzy's picture
User offline. Last seen 9 hours 49 min ago. Offline
Joined: 06/20/2012
Posts: 117

Hi Star and Moon.
First: The file is called "Flake.png" not "flake.png". Case is important in Linux and as Hedgewars is played by Linux users, it is an issue.

Here is what I found out by playing "trial and error" with the letters "SD":
The Sudden Death version of "Flake.png" is "SDFlake.png" (not "SDflake.png").
SD version of water ("BlueWater.png") is "SDWater.png".
SD version of the clouds is "SDClouds.png".
There seems to be no SD version of the sky, because a file named "SDSky.png" has no effect. Sad Smiley

So you were right here, it works with water and clouds, too. Thanks for your help. Where did you get that information?

@nemo: Thanks, although I already knew these.

Edit: There are more "SD" versions of files, both needed for water in SD.
SDSplash.png - SD version of Splash.png
SDDroplet.png - SD version of Droplet.png

nemo
User offline. Last seen 7 hours 31 min ago. Offline
Joined: 01/28/2009
Posts: 993

Wuzzy wrote:

Hi Star and Moon.
First: The file is called "Flake.png" not "flake.png". Case is important in Linux and as Hedgewars is played by Linux users, it is an issue.

Here is what I found out by playing "trial and error" with the letters "SD":
The Sudden Death version of "Flake.png" is "SDFlake.png" (not "SDflake.png").
SD version of water ("BlueWater.png") is "SDWater.png".
SD version of the clouds is "SDClouds.png".
There seems to be no SD version of the sky, because a file named "SDSky.png" has no effect. Sad Smiley

So you were right here, it works with water and clouds, too. Thanks for your help. Where did you get that information?

@nemo: Thanks, although I already knew these.

Edit: There are more "SD" versions of files, both needed for water in SD.
SDSplash.png - SD version of Splash.png
SDDroplet.png - SD version of Droplet.png

Ah. Right. Sorry. Forgot about the files.
$ grep -E FileName.*SD uVariables.pas
(FileName: 'SDFlake'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil;
(FileName: 'SDWater'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil;
(FileName: 'SDClouds'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil;
(FileName: 'SDSplash'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil;
(FileName: 'SDDroplet'; Path: ptCurrTheme; AltPath: ptSuddenDeath; Texture: nil; Surface: nil;

Copyright © 2004-2013 Hedgewars Project. All rights reserved.