85 lines
2.8 KiB
Lua
85 lines
2.8 KiB
Lua
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",
|
|
},
|
|
})
|