Theme.wiki
changeset 434 1ce0c043a837
parent 433 0661855ab04a
child 438 00cedc62761c
equal deleted inserted replaced
433:0661855ab04a 434:1ce0c043a837
     1 #summary Structure of the theme.cfg file
     1 #summary Structure of the theme.cfg file
     2 
     2 
     3 == Theme.cfg ==
     3 == `theme.cfg` ==
     4 This file gives the engine the values associated with a certain theme, to complement the graphics.
     4 The file `theme.cfg` gives the engine the values associated with a certain theme, to complement the graphics.
     5 It is structured with a key followed by a number of values. Example:
     5 It is structured with a key followed by an equals sign followed a value. The value depends on the key.
       
     6  Example:
     6 <code>sky = 120, 40, 80</code>
     7 <code>sky = 120, 40, 80</code>
     7 
     8 
     8 There is also keys that replace existing keys under certain conditions, all keys preceding with "sd-" are used during sudden death and all keys with "rq-" are used when quality is reduced. These keys must be placed after the regular keys and they are all optional.
     9 There is also keys that replace existing keys under certain conditions, all keys preceding with “`sd-`” are used during sudden death and all keys with “`rq-`” are used when quality is reduced. These keys must be placed after the regular keys and they are all optional.
     9 
    10 
    10 Following is the list of all current keys and their values, it is important to have the right number of values. Most keys may only be used once.
    11 Following is the list of all current keys and their values, it is important to have the right number of values. Most keys may only be used once.
    11 
    12 
    12 The values red, green, blue and opacity are in the range of one byte and can be specified in both decimal or hexadecimal form. The range are 0 - 255 or 0 - $FF.
    13 The values red, green, blue and opacity are in the range of one byte and can be specified in both decimal or hexadecimal form. The range are `0` - `255` or `$00` - `$FF`.
    13 
    14 
    14 Comments may be added by prefixing a semicolon (“`;`”) to the comment.
    15 Comments may be added by prefixing a semicolon (“`;`”) to the comment.
    15 
    16 
    16 === `sky` ===
    17 === `sky` ===
    17 The colour of the sky.
    18 The colour of the sky.