mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-11 06:08:19 -06:00
Remove shortcut when GUI is disabled and enable keybind
This commit is contained in:
@@ -360,30 +360,35 @@ styles.ltnm_tabbed_pane = {
|
||||
},
|
||||
}
|
||||
|
||||
data:extend({
|
||||
-- custom inputs
|
||||
--{
|
||||
-- type = "custom-input",
|
||||
-- name = "cybersyn-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 = "cybersyn-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 = "cybersyn-toggle-gui",
|
||||
technology_to_unlock = "cybersyn-train-network",
|
||||
},
|
||||
})
|
||||
if settings.startup["cybersyn-manager-enabled"].value then
|
||||
|
||||
data:extend({
|
||||
-- custom inputs
|
||||
{
|
||||
type = "custom-input",
|
||||
name = "cybersyn-toggle-gui",
|
||||
key_sequence = "CONTROL + T",
|
||||
action = "lua",
|
||||
},
|
||||
--{
|
||||
-- type = "custom-input",
|
||||
-- name = "ltnm-linked-focus-search",
|
||||
-- key_sequence = "",
|
||||
-- linked_game_control = "focus-search",
|
||||
--},
|
||||
-- shortcuts
|
||||
{
|
||||
type = "shortcut",
|
||||
name = "cybersyn-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 = "cybersyn-toggle-gui",
|
||||
technology_to_unlock = "cybersyn-train-network",
|
||||
},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user