-
Notifications
You must be signed in to change notification settings - Fork 7
/
data.lua
60 lines (58 loc) · 1.54 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
local item = {
type = "selection-tool",
name = "power-grid-comb",
subgroup = "tool",
order = "z[power-grid-comb]",
show_in_library = true,
icons = {
{
icon = "__power-grid-comb__/graphics/icons/power-grid-comb.png",
icon_size = 32,
}
},
flags = {"only-in-cursor", "spawnable"},
stack_size = 1,
stackable = false,
selection_color = { r = 0.72, g = 0.45, b = 0.2, a = 1 },
alt_selection_color = { r = 0.72, g = 0.22, b = 0.1, a = 1 },
selection_mode = { "buildable-type", "same-force" },
alt_selection_mode = { "buildable-type", "same-force" },
selection_cursor_box_type = "entity",
alt_selection_cursor_box_type = "entity",
}
local shortcut = {
type = "shortcut",
name = "shortcut-power-grid-comb-item",
action = "spawn-item",
item_to_spawn = "power-grid-comb",
order = "m[power-grid-comb]",
--style = "yellow",
icon = {
filename = "__power-grid-comb__/graphics/icons/power-grid-comb-x32.png",
flags = {
"icon"
},
priority = "extra-high-no-scale",
scale = 1,
size = 32
},
small_icon = {
filename = "__power-grid-comb__/graphics/icons/power-grid-comb-x24.png",
flags = {
"icon"
},
priority = "extra-high-no-scale",
scale = 1,
size = 24
},
disabled_small_icon = {
filename = "__power-grid-comb__/graphics/icons/power-grid-comb-x24-white.png",
flags = {
"icon"
},
priority = "extra-high-no-scale",
scale = 1,
size = 24
},
}
data:extend{item, shortcut}