mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-17 20:12:53 -06:00
got ltn manager to open the manager
This commit is contained in:
@@ -1,6 +1,38 @@
|
||||
local constants = require("constants")
|
||||
|
||||
local util = require("prototypes.util")
|
||||
|
||||
local data_util = require("__flib__.data-util")
|
||||
|
||||
local util = {}
|
||||
|
||||
for key, value in pairs(require("__core__.lualib.util")) do
|
||||
util[key] = value
|
||||
end
|
||||
|
||||
util.paths = {
|
||||
nav_icons = "__cybersyn__/graphics/gui/frame-action-icons.png",
|
||||
shortcut_icons = "__cybersyn__/graphics/shortcut/ltn-manager-shortcut.png",
|
||||
}
|
||||
|
||||
util.empty_checkmark = {
|
||||
filename = data_util.empty_image,
|
||||
priority = "very-low",
|
||||
width = 1,
|
||||
height = 1,
|
||||
frame_count = 1,
|
||||
scale = 8,
|
||||
}
|
||||
|
||||
|
||||
data:extend({
|
||||
data_util.build_sprite("ltnm_pin_black", { 0, 32 }, util.paths.nav_icons, 32),
|
||||
data_util.build_sprite("ltnm_pin_white", { 32, 32 }, util.paths.nav_icons, 32),
|
||||
data_util.build_sprite("ltnm_refresh_black", { 0, 0 }, util.paths.nav_icons, 32),
|
||||
data_util.build_sprite("ltnm_refresh_white", { 32, 0 }, util.paths.nav_icons, 32),
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
local styles = data.raw["gui-style"]["default"]
|
||||
|
||||
@@ -327,3 +359,31 @@ styles.ltnm_tabbed_pane = {
|
||||
bottom_padding = 8,
|
||||
},
|
||||
}
|
||||
|
||||
data:extend({
|
||||
-- custom inputs
|
||||
--{
|
||||
-- type = "custom-input",
|
||||
-- name = "ltnm-toggle-gui",
|
||||
-- key_sequence = "CONTROL + T",
|
||||
--},
|
||||
--{
|
||||
-- type = "custom-input",
|
||||
-- name = "ltnm-linked-focus-search",
|
||||
-- key_sequence = "",
|
||||
-- linked_game_control = "focus-search",
|
||||
--},
|
||||
-- shortcuts
|
||||
{
|
||||
type = "shortcut",
|
||||
name = "ltnm-toggle-gui",
|
||||
icon = data_util.build_sprite(nil, { 0, 0 }, util.paths.shortcut_icons, 32, 2),
|
||||
disabled_icon = data_util.build_sprite(nil, { 48, 0 }, util.paths.shortcut_icons, 32, 2),
|
||||
small_icon = data_util.build_sprite(nil, { 0, 32 }, util.paths.shortcut_icons, 24, 2),
|
||||
disabled_small_icon = data_util.build_sprite(nil, { 36, 32 }, util.paths.shortcut_icons, 24, 2),
|
||||
toggleable = true,
|
||||
action = "lua",
|
||||
--associated_control_input = "ltnm-toggle-gui",
|
||||
technology_to_unlock = "cybersyn-train-network",
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user