Fixed lua ENV stuff and non saving globals

This commit is contained in:
Cooldude2606
2018-06-22 19:48:18 +01:00
parent 251249dcdc
commit 1d132b92fb
10 changed files with 16 additions and 8 deletions

View File

@@ -10,6 +10,7 @@
local Game = require('FactorioStdLib.Game')
local Color = require('FactorioStdLib.Color')
local mod_gui = require("mod-gui")
local Gui = Gui -- this is to force gui to remain in the ENV
local center = {}
center._center = {}

View File

@@ -10,6 +10,7 @@
local Game = require('FactorioStdLib.Game')
local Color = require('FactorioStdLib.Color')
local mod_gui = require("mod-gui")
local Gui = Gui -- this is to force gui to remain in the ENV
local inputs = {}
inputs._input = {}

View File

@@ -12,6 +12,7 @@ local Color = require('FactorioStdLib.Color')
local success, Ranking = pcall(require,'ExpGamingCore.Ranking')
if not success then Ranking = nil end success = nil
local mod_gui = require("mod-gui")
local Gui = Gui -- this is to force gui to remain in the ENV
local left = {}
left._left = {}

View File

@@ -9,6 +9,7 @@
local Game = require('FactorioStdLib.Game')
local mod_gui = require("mod-gui")
local Gui = Gui -- this is to force gui to remain in the ENV
local popup = {}
popup._popup = {}

View File

@@ -9,6 +9,7 @@
local Game = require('FactorioStdLib.Game')
local Server = require('ExpGamingCore.Server')
local Gui = Gui -- this is to force gui to remain in the ENV
--- Adds a server thread that allows the camera follows to be toggled off and on
-- @function __comment

View File

@@ -6,7 +6,7 @@
--- This is a submodule of ExpGamingCore.Gui but for ldoc reasons it is under its own module
-- @function _comment
local Gui = require('ExpGamingCore.Gui')
local Gui = Gui -- this is to force gui to remain in the ENV
local mod_gui = require("mod-gui")
local gui_tset_close = Gui.inputs.add{

View File

@@ -11,6 +11,7 @@ local Game = require('FactorioStdLib.Game')
local success, Ranking = pcall(require,'ExpGamingCore.Ranking')
if not success then Ranking = nil end success = nil
local mod_gui = require("mod-gui")
local Gui = Gui -- this is to force gui to remain in the ENV
local toolbar = {}