mid way tho formatting server-interface to be under one object

This commit is contained in:
Cooldude2606
2017-10-15 00:12:04 +01:00
parent 6dbdec5c8f
commit c1145342fe
4 changed files with 13 additions and 47 deletions

View File

@@ -5,18 +5,7 @@ This file can be used with permission but this and the credit below must remain
Contact a member of management on our discord to seek permission to use our code.
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/XSsBV6b
The credit below may be used by another script do not remove.
]]
local credits = {{
name='Gui Input Handler',
owner='Explosive Gaming',
dev='Cooldude2606',
description='Handles all GUI inputs',
factorio_version='0.15.23',
show=false
}}
local function credit_loop(reg) for _,cred in pairs(reg) do table.insert(credits,cred) end end
--Please Only Edit Below This Line-----------------------------------------------------------
local add_input = ExpGui.add_input
local inputs = ExpGui.inputs

View File

@@ -5,21 +5,10 @@ This file can be used with permission but this and the credit below must remain
Contact a member of management on our discord to seek permission to use our code.
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/XSsBV6b
The credit below may be used by another script do not remove.
]]
local credits = {{
name='Explosive Gaming Gui System',
owner='Explosive Gaming',
dev='Cooldude2606',
description='Without this, it would not be the same',
factorio_version='0.15.23',
show=true
}}
local function credit_loop(reg) for _,cred in pairs(reg) do table.insert(credits,cred) end end
--Please Only Edit Below This Line-----------------------------------------------------------
-- Mainly used as a plan for how the gui is stored also as a header for the credit
ExpGui = {
local ExpGui = {
add_frame={
--center
--tab
@@ -72,4 +61,4 @@ function ExpGui.toggle_visible(frame)
end
end
--Please Only Edit Above This Line-----------------------------------------------------------
return credits
return ExpGui

View File

@@ -5,25 +5,13 @@ This file can be used with permission but this and the credit below must remain
Contact a member of management on our discord to seek permission to use our code.
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/XSsBV6b
The credit below may be used by another script do not remove.
]]
local credits = {{
name='File Header - ExpGaming-Core-GUI',
owner='Explosive Gaming',
dev='Cooldude2606',
description='Just A File Header To Organise Code',
factorio_version='0.15.23',
show=false
}}
local function credit_loop(reg) for _,cred in pairs(reg) do table.insert(credits,cred) end end
--Please Only Edit Below This Line-----------------------------------------------------------
credit_loop(require("ExpGaming - Module Setup"))
credit_loop(require("ExpGaming - Inputs"))
credit_loop(require("ExpGaming - Toolbar"))
credit_loop(require("ExpGaming - Center Gui"))
credit_loop(require("ExpGaming - Left Gui"))
credit_loop(require("ExpGaming - Popup"))
credit_loop(require("ExpGaming - Player Table"))
--Please Only Edit Above This Line-----------------------------------------------------------
return credits
local ExpGui = require("ExpGaming - Module Setup")
require("ExpGaming - Inputs")
require("ExpGaming - Toolbar")
require("ExpGaming - Center Gui")
require("ExpGaming - Left Gui")
require("ExpGaming - Popup")
require("ExpGaming - Player Table")
return ExpGui

View File

@@ -9,9 +9,9 @@ Discord: https://discord.gg/XSsBV6b
--Please Only Edit Below This Line-----------------------------------------------------------
--As this is the core file, the order in which the files are loaded does matter. Do not change!
require("ExpGaming - Lib")
ranking = require("ExpGaming - Rank Control")
ExpGui = require("GUI/file-header")
local ranking = require("ExpGaming - Rank Control")
local ExpGui = require("GUI/file-header")
require("ExpGaming - Command Maker")
server = require("ExpGaming - Server Interface")
local server = require("ExpGaming - Server Interface")
--Please Only Edit Above This Line-----------------------------------------------------------
return ranking,ExpGui,server