mirror of
https://github.com/peter-tanner/factorio-shortcuts.git
synced 2024-11-30 11:10:22 +08:00
Initial commit
This commit is contained in:
commit
6c0a124368
10
Shortcuts_0.1.0/data.lua
Normal file
10
Shortcuts_0.1.0/data.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
require("shortcuts")
|
||||
data.raw["recipe"]["artillery-targeting-remote"].hidden = true
|
||||
local effect = data.raw["technology"]["artillery"].effects
|
||||
for i=1,(#effect),1 do
|
||||
if effect[i].type == "unlock-recipe" then
|
||||
if effect[i].recipe == "artillery-targeting-remote" then
|
||||
table.remove(effect, i)
|
||||
end
|
||||
end
|
||||
end
|
Binary file not shown.
After Width: | Height: | Size: 643 B |
BIN
Shortcuts_0.1.0/graphics/artillery-targeting-remote-x24.png
Normal file
BIN
Shortcuts_0.1.0/graphics/artillery-targeting-remote-x24.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 606 B |
Binary file not shown.
After Width: | Height: | Size: 712 B |
BIN
Shortcuts_0.1.0/graphics/artillery-targeting-remote-x32.png
Normal file
BIN
Shortcuts_0.1.0/graphics/artillery-targeting-remote-x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 680 B |
10
Shortcuts_0.1.0/info.json
Normal file
10
Shortcuts_0.1.0/info.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "Shortcuts",
|
||||
"version": "0.1.0",
|
||||
"factorio_version": "0.17",
|
||||
"title": "Shortcuts",
|
||||
"author": "npc_strider(morley376)",
|
||||
"contact": "",
|
||||
"homepage": "http://steamcommunity.com/id/morley376",
|
||||
"description": "Adds in a shortcut button for the artillery remote, similar to the new personal robot toggle shortcut. Suggest any new shortcut ideas to the discussion page."
|
||||
}
|
45
Shortcuts_0.1.0/shortcuts.lua
Normal file
45
Shortcuts_0.1.0/shortcuts.lua
Normal file
|
@ -0,0 +1,45 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "shortcut",
|
||||
name = "artillery-targeting-remote",
|
||||
order = "a[artillery-targeting-remote]",
|
||||
action = "create-blueprint-item",
|
||||
localised_name = {"item-name.artillery-targeting-remote"},
|
||||
technology_to_unlock = "artillery",
|
||||
item_to_create = "artillery-targeting-remote",
|
||||
style = "red",
|
||||
icon =
|
||||
{
|
||||
filename = "__Shortcuts__/graphics/artillery-targeting-remote-x32-white.png",
|
||||
priority = "extra-high-no-scale",
|
||||
size = 32,
|
||||
scale = 1,
|
||||
flags = {"icon"}
|
||||
},
|
||||
small_icon =
|
||||
{
|
||||
filename = "__Shortcuts__/graphics/artillery-targeting-remote-x24.png",
|
||||
priority = "extra-high-no-scale",
|
||||
size = 24,
|
||||
scale = 1,
|
||||
flags = {"icon"}
|
||||
},
|
||||
disabled_small_icon =
|
||||
{
|
||||
filename = "__Shortcuts__/graphics/artillery-targeting-remote-x24-white.png",
|
||||
priority = "extra-high-no-scale",
|
||||
size = 24,
|
||||
scale = 1,
|
||||
flags = {"icon"}
|
||||
},
|
||||
},
|
||||
-- Custom shortcut can be defined as follows:
|
||||
-- {
|
||||
-- type = "shortcut",
|
||||
-- name = "shortcut-name",
|
||||
-- action = "lua",
|
||||
-- toggleable = true, -- whether or not the shortcut button is a toggle button or not
|
||||
-- order, localised_name, technology_to_unlock, icon, small_icon, disabled_icon, disabled_small_icon as above
|
||||
-- }
|
||||
})
|
BIN
Shortcuts_0.1.0/thumbnail.png
Normal file
BIN
Shortcuts_0.1.0/thumbnail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 712 B |
Loading…
Reference in New Issue
Block a user