mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
21 lines
441 B
Lua
21 lines
441 B
Lua
|
local EventCore = require 'utils.event_core'
|
||
|
|
||
|
local Public = {}
|
||
|
|
||
|
Public.raise = EventCore.on_event
|
||
|
|
||
|
function Public.on_gui_click(element, player_index)
|
||
|
return {
|
||
|
name = defines.events.on_gui_click,
|
||
|
tick = game.tick,
|
||
|
element = element,
|
||
|
player_index = player_index,
|
||
|
button = defines.mouse_button_type.left,
|
||
|
alt = false,
|
||
|
control = false,
|
||
|
shift = false
|
||
|
}
|
||
|
end
|
||
|
|
||
|
return Public
|