-
Notifications
You must be signed in to change notification settings - Fork 9
/
data.lua
84 lines (80 loc) · 2.85 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
75
76
77
78
79
80
81
82
83
84
require "__ModuleInserter__/prototypes/item"
require "__ModuleInserter__/prototypes/style"
local data_util = require("__flib__.data-util")
local frame_action_icons = "__ModuleInserter__/graphics/frame-action-icons.png"
data:extend{
-- frame action icons
data_util.build_sprite("mi_pin_black", {0, 64}, frame_action_icons, 32),
data_util.build_sprite("mi_pin_white", {32, 64}, frame_action_icons, 32),
data_util.build_sprite("mi_settings_black", {0, 96}, frame_action_icons, 32),
data_util.build_sprite("mi_settings_white", {32, 96}, frame_action_icons, 32),
}
data:extend({
{
type = 'custom-input',
name = 'get-module-inserter',
key_sequence = "",
action = 'lua',
consuming = 'none'
},
{
type = 'custom-input',
name = 'toggle-module-inserter',
key_sequence = "CONTROL + I",
action = 'lua',
consuming = 'none',
},
{
type = "custom-input",
name = "mi-confirm-gui",
key_sequence = "",
linked_game_control = "confirm-gui",
},
{
type = 'shortcut',
name = 'module-inserter',
--order = "a[yarm]",
action = 'lua',
style = 'green',
icon = {
filename = "__ModuleInserter__/graphics/new-module-inserter-x32-white.png",
priority = 'extra-high-no-scale',
size = 32,
scale = 1,
flags = {'icon'},
},
small_icon = {
filename = "__ModuleInserter__/graphics/new-module-inserter-x24-white.png",
priority = 'extra-high-no-scale',
size = 24,
scale = 1,
flags = {'icon'},
},
disabled_small_icon = {
filename = "__ModuleInserter__/graphics/new-module-inserter-x24-white.png",
priority = 'extra-high-no-scale',
size = 24,
scale = 1,
flags = {'icon'},
},
},
{
type = "selection-tool",
name = "module-inserter",
icon = "__ModuleInserter__/graphics/module-inserter-icon.png",
icon_size = 32,
icon_mipmaps = 0,
flags = {"hidden", "not-stackable", "mod-openable"},
stack_size = 1,
selection_color = { r = 0, g = 1, b = 0 },
alt_selection_color = { r = 0, g = 0, b = 1 },
selection_mode = {"same-force", "deconstruct"},
alt_selection_mode = {"same-force", "any-entity"},
selection_cursor_box_type = "copy",
alt_selection_cursor_box_type = "copy",
entity_type_filters = {"mining-drill", "furnace", "assembling-machine", "lab", "beacon", "rocket-silo", "item-request-proxy"},
entity_filter_mode = "whitelist",
alt_entity_filters = {"item-request-proxy"},
alt_entity_filter_mode = "whitelist",
},
})