Cleaned gui modules

This commit is contained in:
Cooldude2606 committed 2020-03-18 21:19:54 +00:00
1 parent c2c535848d
commit 60467a7190
5 files changed
+155 -152

No files matched your search

+2 -1
View File
@@ -79,7 +79,7 @@ Gui.element{
style = 'tool_button'
}
:style(Styles.sprite20)
:on_click(function(player,element)
:on_click(function(player,_)
-- Add the new warp
local force_name = player.force.name
local surface = player.surface
@@ -263,6 +263,7 @@ Gui.element(function(event_trigger,parent,warp)
end)
:style(Styles.sprite32)
:on_click(function(player,element,_)
if element.type == 'choose-elem-button' then return end
local warp_id = element.parent.caption
Warps.teleport_player(warp_id,player)