Covnerted Event and Global

This commit is contained in:
Cooldude2606
2019-02-24 21:28:33 +00:00
parent fc279c42f8
commit 1cb2a3c3a0
35 changed files with 97 additions and 78 deletions

View File

@@ -96,11 +96,11 @@ Sync.info_gui = Gui.center{
}.style.font='default-small'
end}
script.on_event(defines.events.on_gui_click,function(event)
Event.add(defines.events.on_gui_click,function(event)
local element = event.element
if element and element.valid and element.caption and element.caption == 'Press Ecs or E to close; this is only visible once!' then
Gui.center.clear(event)
end
end)
script.on_event(defines.events.on_player_joined_game,function(event) Sync.info_gui(event) end)
Event.add(defines.events.on_player_joined_game,function(event) Sync.info_gui(event) end)