Fixed Admin gui not closing; Gui draw more consistent

This commit is contained in:
Cooldude2606
2018-12-31 13:54:06 +00:00
parent f0b1f51c0b
commit 2d1de044dd
13 changed files with 48 additions and 58 deletions

View File

@@ -31,7 +31,7 @@ ThisModule.Gui = Gui.left{
name='rockets',
caption='item/rocket-silo',
tooltip={'ExpGamingInfo-Rockets.tooltip'},
draw=function(frame)
draw=function(self,frame)
frame.caption = {'ExpGamingInfo-Rockets.name'}
local player = Game.get_player(frame.player_index)
local satellites = player.force.get_item_launched('satellite')