1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-04 22:14:25 +02:00
This commit is contained in:
Laserlicht 2024-08-12 00:01:09 +02:00 committed by GitHub
parent d2e24e01b4
commit d7211859e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,6 +182,8 @@ Predefined campaign regions are located in file `campaign_regions.json`
```js ```js
{ {
"background": "own_region_background.bmp",
"suffix": ["Enabled", "Selected", "Conquered"],
"prefix": "G3", "prefix": "G3",
"color_suffix_length": 1, "color_suffix_length": 1,
"desc": [ "desc": [
@ -192,9 +194,11 @@ Predefined campaign regions are located in file `campaign_regions.json`
}, },
``` ```
- `"prefix"` used to identify all images related to campaign. In this example, background picture will be `G3_BG` - `"background"` optional - use own image name for background instead of adding "_BG" to the prefix as name
- `"inflix"` ised to identify all images related to region. In this example, it will be pictures starting from `G3A_..., G3B_..., G3C_..."` - `"prefix"` used to identify all images related to campaign. In this example (if background parameter wouldn't exists), background picture will be `G3_BG`
- `"color_suffix_length"` identifies suffix length for region colourful frames. 1 is used for `R, B, N, G, O, V, T, P`, value 2 is used for `Re, Bl, Br, Gr, Or, Vi, Te, Pi` - `"suffix"` optional - use other suffixes than the default `En`, `Se` and `Co` for the three different images
- `"infix"` ised to identify all images related to region. In this example, it will be pictures starting from `G3A_..., G3B_..., G3C_..."`
- `"color_suffix_length"` identifies suffix length for region colourful frames. 0 is no color suffix (no colorisation), 1 is used for `R, B, N, G, O, V, T, P`, value 2 is used for `Re, Bl, Br, Gr, Or, Vi, Te, Pi`
## Packing campaign ## Packing campaign