ThemeCfg.wiki
changeset 1875 f55ea5b6a00d
parent 1871 7fd3c3635755
child 1876 329784030e91
equal deleted inserted replaced
1874:048c71a203c8 1875:f55ea5b6a00d
    55  * `minvisible`: The minimum amount of rectangles that must be visible
    55  * `minvisible`: The minimum amount of rectangles that must be visible
    56  * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`)
    56  * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`)
    57 
    57 
    58 Syntax when you only need 1 buried rectangle:
    58 Syntax when you only need 1 buried rectangle:
    59 
    59 
    60 <code>Values: filename, max, buriedrec, minvisible, visiblerec</code>
    60 <code>Values: filename, max, buriedrect, minvisible, visiblerec</code>
    61 
    61 
    62 Syntax when you want to use multiple buried rectangles:
    62 Syntax when you want to use multiple buried rectangles:
    63 
    63 
    64 <code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code>
    64 <code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code>
    65 
    65 
    66 Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture:
    66 Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture:
    67 
    67 
    68 https://hedgewars.org/images/avematantheme/hw-avematan.rects.png
    68 https://hedgewars.org/images/avematantheme/hw-avematan.rects.png
    69 
    69 
    70 The large rectangle shows a `visiblerects` and the small one shows a `buriedrects`.
    70 The large rectangle shows a `visiblerects` and the small one shows a `buriedrects`.
       
    71 
       
    72 === `overlays` ===
       
    73 An overlay is an extension of an object. It is an image that is drawn relative to the position of an object that was already placed. Overlays create land just like objects do, but unlike objects, they are drawn on top of the main landmass, instead of behind it. An object can have multiple overlays.
       
    74 
       
    75 This key allows you to assign 1 or more overlays to a given object. If multiple overlays are used, all overlays are drawn whenever the object is placed. This key must be added after the definition of the object you want to add overlays for.
       
    76 
       
    77 <code>Values: object_filename, overlay_count, x_offset_1, y_offset_1, overlay_filename_1, ...</code>
       
    78 
       
    79  * `object_filename`: File name of the object to which this overlay applies
       
    80  * `overlay_count`: Number of overlays for this object
       
    81  * `x_offset_1`: X position offset of the overlay image relative to the object. Note: The top left corner acts as the image origin
       
    82  * `y_offset_1`: Y position offset of the overlay
       
    83  * `overlay_filename_1`: File name of the overlay image to use
       
    84  * You must repeat the last 3 arguments if `overlay_count` is greater than 1; each overlay needs its own offset and file name.
    71 
    85 
    72 === `spray` ===
    86 === `spray` ===
    73 There may be several spray keys in the file, each one representing one spray object.
    87 There may be several spray keys in the file, each one representing one spray object.
    74 The `name` is the case-sensitive name of the PNG file (without the file name suffix) of the graphics file, and `number` is the rough number of instances of this spray that may be added to the map. The number is the average number of sprays that are normally placed on a random medium-sized island. For larger and smaller landscapes, this number will be automatically scaled up or down. Please note that this number only specifies a rough goal, the actual number of created sprays may vary and you may have to play a bit with this number in order to find a good value.
    88 The `name` is the case-sensitive name of the PNG file (without the file name suffix) of the graphics file, and `number` is the rough number of instances of this spray that may be added to the map. The number is the average number of sprays that are normally placed on a random medium-sized island. For larger and smaller landscapes, this number will be automatically scaled up or down. Please note that this number only specifies a rough goal, the actual number of created sprays may vary and you may have to play a bit with this number in order to find a good value.
    75 
    89