mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 20:16:38 +09:00
Fixed Admin gui not closing; Gui draw more consistent
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -42,7 +42,7 @@ ThisModule.Gui = Gui.left{
|
||||
name='science',
|
||||
caption='item/lab',
|
||||
tooltip={'ExpGamingInfo-Science.tooltip'},
|
||||
draw=function(frame)
|
||||
draw=function(self,frame)
|
||||
local player = Game.get_player(frame.player_index)
|
||||
if not global[player.force.name] then
|
||||
verbose('Added Science Global for: '..player.force.name)
|
||||
|
||||
@@ -130,7 +130,7 @@ ThisModule.Gui = Gui.left{
|
||||
name='tasklist',
|
||||
caption='utility/not_enough_repair_packs_icon',
|
||||
tooltip={'ExpGamingInfo-Tasklist.tooltip'},
|
||||
draw=function(frame)
|
||||
draw=function(self,frame)
|
||||
frame.caption = ''
|
||||
local title = frame.add{
|
||||
type='flow',
|
||||
|
||||
Reference in New Issue
Block a user