Code: Select all
{
type = "shortcut",
name = "GCKI_car-key",
action = "lua",
icon = {
filename = GCKI.modRoot.."/graphics/"..icon,
size = 64,
mipmap_count = 1,
},
technology_to_unlock = "automobilism",
},
In control.lua, there is this:
Code: Select all
script.on_event(defines.events.on_lua_shortcut, function(event)
log("on_lua_shortcut("..serpent.line(event)..")")
end)