File: 009_replace.nml

package info (click to toggle)
nml 0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,792 kB
  • sloc: python: 18,398; ansic: 109; makefile: 69
file content (30 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
grf {
    grfid: "NML\9";
    name: string(STR_REGRESSION_NAME);
    desc: string(STR_REGRESSION_DESC);
    version: 0;
    min_compatible_version: 0;
}

template no_param() {
    [48, 56, 8, 18, -3, -10]
}

template many_param(a, b, c, d, e, f, g, h) {
    [a, b, c, d, e+f, f*h]
}

replace (3092, "opengfx_generic_trams1.pcx") { // replace the first two bus sprites
    no_param()
    many_param(48, 56, 8, 18, -5, 2, -5, 2)
}

/* Sprites / code from opengfx (slightly modified) */
replacenew(ONE_WAY_ROAD, "oneway.png") {
    [  18,    8,  24,  16, -12,  -8]
    [  50,    8,  24,  16, -12,  -8]
    [  82,    8,  28,  16, -14,  -8]
    [ 114,    8,  24,  16, -10,  -8]
    [ 146,    8,  24,  16, -10,  -8]
    [ 178,    8,  28,  16, -12,  -8]
}