Repository navigation
Expand file tree
/
Copy pathdata.lua
More file actions
102 lines (100 loc) · 2.67 KB
/
Copy pathdata.lua
File metadata and controls
102 lines (100 loc) · 2.67 KB
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
local shared = require("shared")
data:extend({
{
name = shared.names.planner,
type = "selection-tool",
icons = {
{
icon = "__base__/graphics/icons/upgrade-planner.png",
icon_size = 64,
icon_mipmaps = 4,
},
{
icon = "__base__/graphics/icons/refined-concrete.png",
icon_size = 64,
icon_mipmaps = 4,
scale = 0.25,
},
},
subgroup = "tool",
flags = {"spawnable"},
order = "c[automated-construction]-c[upgrade-planner]-tile",
stack_size = 1,
select = {
border_color = {g = 255},
cursor_box_type = "blueprint-snap-rectangle", --entity?
mode = {"items-to-place", "tile-ghost"}, -- any-tile?
},
alt_select = {
border_color = {b = 255},
cursor_box_type = "not-allowed",
mode = {"items-to-place", "tile-ghost"}, --is tile-ghost broken now?
entity_filters = {"tile-ghost"},
},
reverse_select = {
border_color = {g = 255},
cursor_box_type = "blueprint-snap-rectangle",
mode = {"items-to-place", "tile-ghost"}, -- any-tile?
},
},
{
name = shared.names.planner,
type = "shortcut",
action = "spawn-item",
item_to_spawn = "tile-upgrade-planner",
style = "green",
order = "b[blueprints]-h[upgrade-planner]",
associated_control_input = shared.names.planner,
technology_to_unlock = "construction-robotics",
unavailable_until_unlocked = false,
icons = {
{
icon = "__base__/graphics/icons/refined-concrete.png",
priority = "extra-high-no-scale",
icon_size = 64,
scale = 0.25,
mipmap_count = 4,
flags = {"gui-icon"},
},
},
small_icons = {
{
icon = "__base__/graphics/icons/shortcut-toolbar/mip/new-upgrade-planner-x24.png",
priority = "extra-high-no-scale",
icon_size = 24,
scale = 0.5,
mipmap_count = 2,
flags = {"gui-icon"},
}
},
disabled_small_icon = {
filename = "__base__/graphics/icons/shortcut-toolbar/mip/new-upgrade-planner-x24-white.png",
priority = "extra-high-no-scale",
size = 24,
scale = 0.5,
mipmap_count = 2,
flags = {"gui-icon"},
},
},
{
name = shared.names.planner,
type = "custom-input",
key_sequence = "SHIFT + ALT + U",
item_to_spawn = shared.names.planner,
action = "spawn-item",
},
{
name = shared.names.add_row,
type = "sprite",
filename = "__core__/graphics/add-icon.png",
size = 32,
tint = {g = 255},
},
{
name = shared.names.remove_row,
type = "sprite",
filename = "__core__/graphics/cancel.png",
size = 64,
scale = 0.5,
},
})