-
Notifications
You must be signed in to change notification settings - Fork 3
/
simple_empty_tile_1.tnfo
288 lines (225 loc) · 7.78 KB
/
simple_empty_tile_1.tnfo
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
#ifndef DISABLE_GRM
-1 * 7 06
PARAM_GRM 82 \b13
PARAM_GRM 82 \b21
PARAM_GRM 82 \b29
PARAM_GRM 82 \b49
PARAM_GRM 82 \b69
PARAM_GRM 82 \b89
FF
#endif
-1 * 0 00 04 \b7 \b1 THIS_TILE_ID
08 "CHPT" // Class ID - groups stations in menu
1A 06 // 6 tiles
//Basic layout
40 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
40 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
//With building on top
41 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
\dx8000042D \wx0000
00 00 00 // x/y/z offset
10 10 10 // x/y/z extend
41 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
\dx8000042D \wx0000
00 00 00 // x/y/z offset
10 10 10 // x/y/z extend
//Crane
41 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
\dx8000842D \wx0000
00 00 00 // x/y/z offset
10 10 20 // x/y/z extend
41 // Use advanced sprite layout
THIS_GROUND \wx0002 00 // One TTD ground sprite without offset for other railtypes
\dx8000842D \wx0000
00 00 00 // x/y/z offset
10 10 20 // x/y/z extend
0B 03 // callback flags
10 \w500 // little / lots threshold for cargo display
15 FF // set non track bits (FF is the lazy solution to working out the correct bit mask)
11 00
14 FF
#define THIS_CARGO_SPRITESHEET src/graphics/cranes.png
#define THIS_SET_ID A0
#include "simple_empty_tile_1_building.tnfo"
#define THIS_CARGO_SPRITESHEET src/graphics/forklifts_small.png
#define THIS_SET_ID A1
#include "simple_empty_tile_1_building.tnfo"
#define THIS_CARGO_SPRITESHEET src/graphics/trucks_small.png
#define THIS_SET_ID A2
#include "simple_empty_tile_1_building.tnfo"
#define THIS_CARGO_SPRITESHEET src/graphics/structures.png
#define THIS_SET_ID A3
#include "simple_empty_tile_1_building.tnfo"
// semi-random one from the sets above
-1 * 0 02 04 40 81 // 'building' instead of cargo
40 20 03
\2^ 40 08 03
\b3 // num ranges
\wxA0 00 00
\wxA1 01 01
\wxA2 02 02
\wxA3
-1 * 0 02 04 40 85 // 'building' instead of cargo
0C 00 \wxFFFF // var, shift, mask
\b1 // num ranges
\wx8004 \wx14 \wx14 // Force correct layout
\wx40
#define TILE_TEMPLATE_FILE "simple_empty_tile_1_cargo.tnfo"
#define THIS_CARGO_SPRITESHEET src/graphics/lumber_cargo.png
#define THIS_SET_ID A0
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/scrap_metal_cargo.png
#define THIS_SET_ID A1
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/crates_cargo.png
#define THIS_SET_ID A2
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/stone_cargo.png
#define THIS_SET_ID A3
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/sand_cargo.png
#define THIS_SET_ID A4
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/clay_cargo.png
#define THIS_SET_ID A5
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/coal_cargo.png
#define THIS_SET_ID A6
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/iron_ore_cargo.png
#define THIS_SET_ID A7
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/wood_cargo.png
#define THIS_SET_ID A8
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/barrels_cargo.png
#define THIS_SET_ID A9
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/metal_mixed_cargo.png
#define THIS_SET_ID AA
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/fruit_vegetable_cargo.png
#define THIS_SET_ID AB
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/barrels_bare_metal_cargo.png
#define THIS_SET_ID AC
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/alcohol_cargo.png
#define THIS_SET_ID AD
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/crates_white_cargo.png
#define THIS_SET_ID AE
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/bauxite_cargo.png
#define THIS_SET_ID AF
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/copper_ore_cargo.png
#define THIS_SET_ID C0
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/rubber_cargo.png
#define THIS_SET_ID C1
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/sugar_cargo.png
#define THIS_SET_ID C2
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/coffee_cargo.png
#define THIS_SET_ID C3
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/sugarcane_cargo.png
#define THIS_SET_ID C4
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/nitrates_cargo.png
#define THIS_SET_ID C5
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/sugar_beet_cargo.png
#define THIS_SET_ID C6
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/paper_cargo.png
#define THIS_SET_ID C7
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/pyrite_ore_cargo.png
#define THIS_SET_ID C8
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/phosphate_cargo.png
#define THIS_SET_ID C9
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/manganese_ore_cargo.png
#define THIS_SET_ID CA
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/vehicles_cargo.png
#define THIS_SET_ID CB
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/nuts_cargo.png
#define THIS_SET_ID CC
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/cassava_cargo.png
#define THIS_SET_ID CD
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/copper_cargo.png
#define THIS_SET_ID CE
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/slag_cargo.png
#define THIS_SET_ID CF
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/pipe_cargo.png
#define THIS_SET_ID D0
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/sulphur_cargo.png
#define THIS_SET_ID D1
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/soda_ash_cargo.png
#define THIS_SET_ID D2
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/cement_cargo.png
#define THIS_SET_ID D3
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/vehicle_bodies_cargo.png
#define THIS_SET_ID D4
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/peat_cargo.png
#define THIS_SET_ID D5
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/kaolin_cargo.png
#define THIS_SET_ID D6
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/limestone_cargo.png
#define THIS_SET_ID D7
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/metal_slab_cargo.png
#define THIS_SET_ID D8
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/metal_coil_cargo.png
#define THIS_SET_ID D9
#include TILE_TEMPLATE_FILE
#define THIS_CARGO_SPRITESHEET src/graphics/tyres_cargo.png
#define THIS_SET_ID DA
#include TILE_TEMPLATE_FILE
-1 * 0 02 04 B0 85 // no cargo at all
0C 00 \wxFFFF // var, shift, mask
\b2 // num ranges
#ifdef HIDE_THIS_TILE
\wx8000 \wx13 \wx13
#endif
#ifndef HIDE_THIS_TILE
\wx8001 \wx13 \wx13
#endif
\wx8000 \wx14 \wx14 // Force 'platform with building on top' for now
\wx00
-1 * 0 02 04 B0 80 00 12 04 \wxB0 \wxB0 \wxB0 \wx40
// Set temp register 0 to 0
-1 * 0 02 04 B0 81
1A 20 00 \2sto
1A 00 00
01 \wxB0 00 00 \wxB0
#define MENU_GRAPHICS_ID B0
// Action 3
#include "simple_action_3.tnfo"
#undef THIS_GROUND
#undef THIS_TILE_ID
#undef THIS_SPRITESHEET_X
#undef TILE_TEMPLATE_FILE