Sudden Death theme colors

4 replies [Last post]
Wuzzy
Wuzzy's picture
User offline. Last seen 29 weeks 3 days ago. Offline
Joined: 2012-06-20
Posts: 1304

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.

Hi, I am a Hedgewars developer. Smile

Star and Moon
Star and Moon's picture
User offline. Last seen 3 weeks 23 hours ago. Offline
Joined: 2010-04-03
Posts: 720

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
nemo's picture
User offline. Last seen 23 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Wuzzy
Wuzzy's picture
User offline. Last seen 29 weeks 3 days ago. Offline
Joined: 2012-06-20
Posts: 1304

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

Hi, I am a Hedgewars developer. Smile

nemo
nemo's picture
User offline. Last seen 23 weeks 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Wuzzy allegedly 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;

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]