Skip to content

Commit

Permalink
Add patrol remote shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed Dec 31, 2024
1 parent 309d9fa commit 634d138
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 0 deletions.
Binary file removed graphics/shortcut/patrol-shortcut-24.png
Binary file not shown.
Binary file removed graphics/shortcut/patrol-shortcut-white-24.png
Binary file not shown.
Binary file removed graphics/shortcut/patrol-shortcut-white.png
Binary file not shown.
Binary file removed graphics/shortcut/patrol-shortcut.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed graphics/shortcut/waypoint-shortcut-24.png
Binary file not shown.
Binary file removed graphics/shortcut/waypoint-shortcut-white-24.png
Binary file not shown.
Binary file removed graphics/shortcut/waypoint-shortcut-white.png
Binary file not shown.
Binary file removed graphics/shortcut/waypoint-shortcut.png
Binary file not shown.
4 changes: 4 additions & 0 deletions locale/en/locale.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[controls]
sp-give-spidertron-patrol-remote=Spidertron patrol remote
sp-replace-previous-waypoint=Replace previous waypoint
sp-delete-all-waypoints=Delete all waypoints
sp-toggle-spidertron-automatic-manual=Toggle spidertron automatic/manual
Expand All @@ -7,6 +8,9 @@ sp-toggle-spidertron-automatic-manual=Toggle spidertron automatic/manual
sp-delete-all-waypoints=Used with spidertron patrol remote.
sp-toggle-spidertron-automatic-manual=Toggles automatic/manual mode for the spidertron currently selected, opened, connected to held remote, or being driven.

[shortcut-name]
sp-give-spidertron-patrol-remote=Create __1__ patrol remote

[item-name]
sp-spiderling-rocket-launcher=Spiderling rocket launcher
sp-spidertron-patrol-remote=__1__ patrol remote
Expand Down
26 changes: 26 additions & 0 deletions prototypes/custom-input.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
-- Misc inputs
data:extend{
{
type = "shortcut",
name = "sp-give-spidertron-patrol-remote",
order = "e-b[spidertron-remote]",
action = "spawn-item",
localised_name = {"shortcut-name.sp-give-spidertron-patrol-remote", SPIDERTRON_NAME},
associated_control_input = "sp-give-spidertron-patrol-remote",
technology_to_unlock = "spidertron", -- Overwritten at bottom of file if spiderling is enabled
unavailable_until_unlocked = true,
item_to_spawn = "sp-spidertron-patrol-remote",
icon = "__SpidertronPatrols__/graphics/shortcut/spidertron-patrol-remote-shortcut-x56.png",
icon_size = 56,
small_icon = "__SpidertronPatrols__/graphics/shortcut/spidertron-patrol-remote-shortcut-x56.png",
small_icon_size = 56,
},
{
type = "custom-input",
name = "sp-give-spidertron-patrol-remote",
key_sequence = "CONTROL + ALT + A",
--controller_key_sequence = "controller-lefttrigger + controller-y",
block_modifiers = true,
consuming = "game-only",
item_to_spawn = "sp-spidertron-patrol-remote",
action = "spawn-item"
},
{
type = "custom-input",
name = "sp-use-item-custom",
Expand Down Expand Up @@ -68,4 +93,5 @@ data:extend{

if settings.startup["sp-enable-spiderling"].value then
data.raw["shortcut"]["give-spidertron-remote"].technology_to_unlock = "sp-spiderling"
data.raw["shortcut"]["sp-give-spidertron-patrol-remote"].technology_to_unlock = "sp-spiderling"
end

0 comments on commit 634d138

Please sign in to comment.