HWPFormat.wiki
changeset 1431 ea2c33d74c85
parent 1430 8196665ba6d7
child 1432 549afbe978a8
equal deleted inserted replaced
1430:8196665ba6d7 1431:ea2c33d74c85
    27 A HWP file is just a Zip file, but with the file name suffix “.hwp” instead of “.zip”. They reflect the content of the `Data/` directory of Hedgewars. Any file in a HWP will be treated as if it were in the `Data` directory.
    27 A HWP file is just a Zip file, but with the file name suffix “.hwp” instead of “.zip”. They reflect the content of the `Data/` directory of Hedgewars. Any file in a HWP will be treated as if it were in the `Data` directory.
    28 
    28 
    29 ==== Example ====
    29 ==== Example ====
    30 Suppose you have made a theme with the name “!MyTheme_v1” (!MyTheme, version 1). If you want to package it in a HWP, you just create a Zip file (e.g. “MyTheme.zip”) with the following directory structure:
    30 Suppose you have made a theme with the name “!MyTheme_v1” (!MyTheme, version 1). If you want to package it in a HWP, you just create a Zip file (e.g. “MyTheme.zip”) with the following directory structure:
    31 
    31 
    32 ```
    32     Themes
    33 Themes
    33         MyTheme_v1
    34     MyTheme_v1
    34             theme.cfg
    35         theme.cfg
    35             BlueWater.png
    36         BlueWater.png
    36             SDWater.png
    37         SDWater.png
    37             horizont.png
    38         horizont.png
    38             Sky.png
    39         Sky.png
    39             (many other theme files)
    40         (many other theme files)
       
    41 ```
       
    42 
    40 
    43 Then the only thing you need to do is to rename the Zip file to have the correct suffix, i.e. “MyTheme_v1.hwp”. Note only the suffix is important. The name before that can be whatever you like.
    41 Then the only thing you need to do is to rename the Zip file to have the correct suffix, i.e. “MyTheme_v1.hwp”. Note only the suffix is important. The name before that can be whatever you like.
    44 
    42 
    45 If you're done, you probably want to test it as well. Just put your fresh HWP into the `Data/` directory, restart Hedgewars and check if the theme shows up.
    43 If you're done, you probably want to test it as well. Just put your fresh HWP into the `Data/` directory, restart Hedgewars and check if the theme shows up.
    46 
    44