-
-
Notifications
You must be signed in to change notification settings - Fork 444
/
Copy pathtilecoloring.dm
375 lines (295 loc) · 8.4 KB
/
tilecoloring.dm
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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
/obj/effect/turf_decal/tile
name = "tile decal"
icon_state = "tile_corner"
layer = TURF_PLATING_DECAL_LAYER
alpha = 110
use_holiday_colors = TRUE
/// Automatically generates all subtypes for a decal with the given path.
#define TILE_DECAL_SUBTYPE_HELPER(path)\
##path/opposingcorners {\
icon_state = "tile_opposing_corners";\
}\
##path/half {\
icon_state = "tile_half";\
}\
##path/half/contrasted {\
icon_state = "tile_half_contrasted";\
}\
##path/anticorner {\
icon_state = "tile_anticorner";\
}\
##path/anticorner/contrasted {\
icon_state = "tile_anticorner_contrasted";\
}\
##path/fourcorners {\
icon_state = "tile_fourcorners";\
}\
##path/full {\
icon_state = "tile_full";\
}\
##path/diagonal_centre {\
icon_state = "diagonal_centre";\
}\
##path/diagonal_edge {\
icon_state = "diagonal_edge";\
}
/// Blue tiles
/obj/effect/turf_decal/tile/blue
name = "blue tile decal"
color = "#52B4E9"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/blue)
/// Dark blue tiles
/obj/effect/turf_decal/tile/dark_blue
name = "dark blue tile decal"
color = "#486091"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/dark_blue)
/// Green tiles
/obj/effect/turf_decal/tile/green
name = "green tile decal"
color = "#9FED58"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/green)
/// Dark green tiles
/obj/effect/turf_decal/tile/dark_green
name = "dark green tile decal"
color = "#439C1E"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/dark_green)
/// Yellow tiles
/obj/effect/turf_decal/tile/yellow
name = "yellow tile decal"
color = "#EFB341"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/yellow)
/// Red tiles
/obj/effect/turf_decal/tile/red
name = "red tile decal"
color = "#DE3A3A"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/red)
/// Dark red tiles
/obj/effect/turf_decal/tile/dark_red
name = "dark red tile decal"
color = "#B11111"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/dark_red)
/// Bar tiles
/obj/effect/turf_decal/tile/bar
name = "bar tile decal"
color = "#791500"
alpha = 130
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/bar)
/// Purple tiles
/obj/effect/turf_decal/tile/purple
name = "purple tile decal"
color = "#D381C9"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/purple)
/// Brown tiles
/obj/effect/turf_decal/tile/brown
name = "brown tile decal"
color = "#A46106"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/brown)
/// Neutral tiles
/obj/effect/turf_decal/tile/neutral
name = "neutral tile decal"
color = "#D4D4D4"
alpha = 50
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/neutral)
/// Dark tiles
/obj/effect/turf_decal/tile/dark
name = "dark tile decal"
color = "#0e0f0f"
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/dark)
/// Weird snowflake ones
/obj/effect/turf_decal/tile/random // so many colors
name = "colorful corner"
color = "#E300FF" //bright pink as default for mapping
/obj/effect/turf_decal/tile/random/Initialize(mapload)
color = "#[random_short_color()]"
. = ..()
/// Date-specific tiles
/obj/effect/turf_decal/tile/holiday
name = "ERROR tile decal"
color = "#FF0000"
/obj/effect/turf_decal/tile/holiday/Initialize(mapload)
color = request_holiday_colors(src, pattern)
alpha = DECAL_ALPHA
return ..()
/// Pattern tiles
/obj/effect/turf_decal/tile/holiday/rainbow
name = "rainbow tile decal"
color = "#75C9EB" //bright blue as default for mapping
pattern = PATTERN_RAINBOW
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/holiday/rainbow)
/obj/effect/turf_decal/tile/holiday/random // so many colors
name = "colorful tile decal"
color = "#E300FF" //bright pink as default for mapping
pattern = PATTERN_RANDOM
TILE_DECAL_SUBTYPE_HELPER(/obj/effect/turf_decal/tile/holiday/random)
#undef TILE_DECAL_SUBTYPE_HELPER
/obj/effect/turf_decal/trimline
layer = TURF_PLATING_DECAL_LAYER
alpha = 110
icon_state = "trimline_box"
use_holiday_colors = TRUE
/// Automatically generates all trimlines for a decal with the given path.
#define TRIMLINE_SUBTYPE_HELPER(path)\
##path/line {\
icon_state = "trimline";\
}\
##path/corner {\
icon_state = "trimline_corner";\
}\
##path/end {\
icon_state = "trimline_end";\
}\
##path/arrow_cw {\
icon_state = "trimline_arrow_cw";\
}\
##path/arrow_ccw {\
icon_state = "trimline_arrow_ccw";\
}\
##path/warning {\
icon_state = "trimline_warn";\
}\
##path/mid_joiner {\
icon_state = "trimline_mid";\
}\
##path/filled {\
icon_state = "trimline_box_fill";\
}\
##path/filled/line {\
icon_state = "trimline_fill";\
}\
##path/filled/corner {\
icon_state = "trimline_corner_fill";\
}\
##path/filled/end {\
icon_state = "trimline_end_fill";\
}\
##path/filled/arrow_cw {\
icon_state = "trimline_arrow_cw_fill";\
}\
##path/filled/arrow_ccw {\
icon_state = "trimline_arrow_ccw_fill";\
}\
##path/filled/warning {\
icon_state = "trimline_warn_fill";\
}\
##path/filled/mid_joiner {\
icon_state = "trimline_mid_fill";\
}\
##path/filled/shrink_cw {\
icon_state = "trimline_shrink_cw";\
}\
##path/filled/shrink_ccw {\
icon_state = "trimline_shrink_ccw";\
}\
##path/filled/warning/flip {\
icon_state = "trimline_warn_fill_flip";\
}\
##path/filled/line/lower {\
icon_state = "trimline_fill_lower";\
}\
##path/filled/shrink_cw/lower {\
icon_state = "trimline_shrink_cw_lower";\
}\
##path/filled/shrink_ccw/lower {\
icon_state = "trimline_shrink_ccw_lower";\
}\
##path/filled/corner/lower {\
icon_state = "trimline_corner_lower";\
}\
##path/warning/lower {\
icon_state = "trimline_warn_lower";\
}\
##path/warning/lower/flip {\
icon_state = "trimline_warn_lower_flip";\
}\
##path/warning/lower/nobottom {\
icon_state = "trimline_warn_lower_nobottom";\
alpha = 220;\
}\
##path/warning/lower/nobottom/flip {\
icon_state = "trimline_warn_lower_notbottom_flip";\
}\
##path/warning/lower/corner {\
icon_state = "trimline_corner_lower_warn";\
alpha = 220;\
}\
##path/warning/lower/corner/flip {\
icon_state = "trimline_corner_lower_warn_flip";\
}\
##path/filled/lower {\
icon_state = "trimline_box_fill_lower";\
}\
##path/filled/end/lower {\
icon_state = "trimline_end_fill_lower";\
}
/// White trimlines
/obj/effect/turf_decal/trimline/white
color = "#FFFFFF"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/white)
/// Red trimlines
/obj/effect/turf_decal/trimline/red
color = "#DE3A3A"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/red)
/// Dark red trimlines
/obj/effect/turf_decal/trimline/dark_red
color = "#B11111"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/dark_red)
/// Green trimlines
/obj/effect/turf_decal/trimline/green
color = "#9FED58"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/green)
/// Dark green Trimlines
/obj/effect/turf_decal/trimline/dark_green
color = "#439C1E"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/dark_green)
/// Blue trimlines
/obj/effect/turf_decal/trimline/blue
color = "#52B4E9"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/blue)
/// Dark blue trimlines
/obj/effect/turf_decal/trimline/dark_blue
color = "#384e6d"
alpha = 220
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/dark_blue)
/// Yellow trimlines
/obj/effect/turf_decal/trimline/yellow
color = "#EFB341"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/yellow)
/// Purple trimlines
/obj/effect/turf_decal/trimline/purple
color = "#D381C9"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/purple)
/// Brown trimlines
/obj/effect/turf_decal/trimline/brown
color = "#A46106"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/brown)
/// Neutral trimlines
/obj/effect/turf_decal/trimline/neutral
color = "#D4D4D4"
alpha = 50
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/neutral)
/// chemorange trimlines
/obj/effect/turf_decal/trimline/chemorange
color = "#F29A4D"
alpha = 220
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/chemorange)
/// Secred trimlines
/obj/effect/turf_decal/trimline/secred
color = "#D12A2B"
alpha = 220
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/secred)
/// engiyellow trimlines
/obj/effect/turf_decal/trimline/engiyellow
color = "#CCB223"
alpha = 220
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/engiyellow)
/// atmos trimlines
/obj/effect/turf_decal/trimline/atmos
color = "#539085"
alpha = 220
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/atmos)
/// Dark trimlines
/obj/effect/turf_decal/trimline/dark
color = "#0e0f0f"
TRIMLINE_SUBTYPE_HELPER(/obj/effect/turf_decal/trimline/dark)
#undef TRIMLINE_SUBTYPE_HELPER
#undef DECAL_ALPHA