-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.lua
67 lines (64 loc) · 2 KB
/
data.lua
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
local thicknesses = {
"factorio-like-belt-indicator",
"factorio-like-pipe-indicator",
"double-thick-line",
"double-thin-line",
"extra-thick-line",
"thick-line",
"thin-line"
}
local colors = {
["white"] = {1.0, 1.0, 1.0},
["red"] = {1.0, 0.0, 0.0},
["green"] = {0.0, 1.0, 0.0},
["blue"] = {0.0, 0.0, 1.0},
["yellow"] = {1.0, 1.0, 0.0},
["magenta"] = {1.0, 0.0, 1.0},
["cyan"] = {0.0, 1.0, 1.0}
}
for color, rgb in pairs(colors) do
for _, thickness in pairs(thicknesses) do
data:extend({
{
type = "corpse",
name = "underground-indicators-dash-" .. color .. "-" .. thickness,
flags = {"not-on-map", "placeable-off-grid", "not-deconstructable", "not-blueprintable"},
selectable_in_game = false,
time_before_shading_off = 96,
time_before_removed = 120,
animation_render_layer = "air-object",
hidden_in_factoriopedia = true,
animation = {{
filename = "__UndergroundIndicatorsFixed__/graphics/" .. thickness .. "-dash.png",
priority = "extra-high",
width = 64,
height = 64,
direction_count = 4,
line_length = 4,
frame_count = 1,
scale = 0.5,
tint = rgb,
}}
},
{
type = "corpse",
name = "underground-indicators-rect-" .. color .. "-" .. thickness,
flags = {"not-on-map", "placeable-off-grid", "not-deconstructable", "not-blueprintable"},
selectable_in_game = false,
time_before_shading_off = 96,
time_before_removed = 150,
final_render_layer = "air-object",
hidden_in_factoriopedia = true,
animation = {{
filename = "__UndergroundIndicatorsFixed__/graphics/" .. thickness .. "-rect.png",
priority = "extra-high",
width = 64,
height = 64,
frame_count = 1,
scale = 0.5,
tint = rgb
}}
}
})
end
end