-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdata.lua
74 lines (69 loc) · 2.32 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
68
69
70
71
72
73
74
local data_util = require("__flib__.data-util")
require("prototypes.styles")
local tint = {r=255, g=240, b=0}
data:extend{
data_util.build_sprite("autotrash_selection", nil, data_util.planner_base_image, 64, 4, {tint=tint})
}
data:extend {
{
type = "selection-tool",
name = "autotrash-network-selection",
icons = {{icon=data_util.planner_base_image, icon_size=64, icon_mipmaps=4, tint=tint}},
stack_size = 1,
flags = {"hidden", "only-in-cursor", "not-stackable", "draw-logistic-overlay"},
draw_label_for_cursor_render = true,
selection_color = { r = 0, g = 1, b = 0 },
alt_selection_color = { r = 0, g = 0, b = 1 },
selection_mode = {"blueprint"},
alt_selection_mode = {"blueprint"},
selection_cursor_box_type = "copy",
alt_selection_cursor_box_type = "copy",
entity_type_filters = {"roboport"},
alt_entity_type_filters = {"roboport"},
}
}
data:extend{
{
type = "custom-input",
name = "autotrash-toggle-gui",
key_sequence = "CONTROL + L",
order = "a"
},
{
type = "custom-input",
name = "autotrash_trash_cursor",
key_sequence = "SHIFT + T",
order = "b"
},
{
type = "custom-input",
name = "autotrash_pause",
key_sequence = "SHIFT + P",
order = "c"
},
{
type = "custom-input",
name = "autotrash_pause_requests",
key_sequence = "SHIFT + O",
order = "d"
},
{
type = "custom-input",
name = "autotrash-toggle-unrequested",
key_sequence = "",
order = "e"
},
}
data:extend{
{
type = "shortcut",
name = "autotrash-toggle-gui",
action = "lua",
icon = data_util.build_sprite(nil, nil, "__AutoTrash__/graphics/shortcut.png", 64),
disabled_icon = data_util.build_sprite(nil, nil, "__AutoTrash__/graphics/shortcut-disabled.png", 64),
small_icon = data_util.build_sprite(nil, nil, "__AutoTrash__/graphics/shortcut.png", 64),
disabled_small_icon = data_util.build_sprite(nil, nil, "__AutoTrash__/graphics/shortcut-disabled.png", 64),
toggleable = true,
associated_control_input = "autotrash-toggle-gui"
}
}