File: 009_replace.nml

package info (click to toggle)
nml 0.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,980 kB
  • ctags: 1,752
  • sloc: python: 14,277; sh: 217; makefile: 38
file content (31 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (4)
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
31
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]
}