mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Gui Base added
This commit is contained in:
12
locale/ExpCore/GuiParts/inputs.lua
Normal file
12
locale/ExpCore/GuiParts/inputs.lua
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
--[[
|
||||||
|
Explosive Gaming
|
||||||
|
|
||||||
|
This file can be used with permission but this and the credit below must remain in the file.
|
||||||
|
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/r6dC2uK
|
||||||
|
]]
|
||||||
|
|
||||||
|
local inputs = {}
|
||||||
|
|
||||||
|
return inputs
|
||||||
29
locale/ExpCore/gui.lua
Normal file
29
locale/ExpCore/gui.lua
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
--[[
|
||||||
|
Explosive Gaming
|
||||||
|
|
||||||
|
This file can be used with permission but this and the credit below must remain in the file.
|
||||||
|
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/r6dC2uK
|
||||||
|
]]
|
||||||
|
|
||||||
|
local Gui = {}
|
||||||
|
local Gui_data = {}
|
||||||
|
|
||||||
|
-- this is to enforce the read only propetry of the gui
|
||||||
|
function Gui._add_data(key,value)
|
||||||
|
if game then return end
|
||||||
|
if not Gui_data[key] then Gui_data[key] = {value}
|
||||||
|
else table.insert(Gui_data[key],value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function Gui._get_data(key) return Gui_data[key] end
|
||||||
|
|
||||||
|
function Gui:_load_parts(parts)
|
||||||
|
for _,part in pairs(parts) do
|
||||||
|
self[part] = require('/GuiParts/'..part)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return Gui
|
||||||
@@ -19,14 +19,15 @@ local StdExpCoreLib = {}
|
|||||||
|
|
||||||
require '/commands'
|
require '/commands'
|
||||||
StdExpCoreLib.Server = require '/server'
|
StdExpCoreLib.Server = require '/server'
|
||||||
StdExpCoreLib.Gui = {}
|
|
||||||
StdExpCoreLib.Ranking = require '/ranking'
|
StdExpCoreLib.Ranking = require '/ranking'
|
||||||
--[[StdExpCoreLib.Gui = require '/gui'
|
StdExpCoreLib.Gui = require '/gui'
|
||||||
require '/GuiParts/inputs'
|
Gui:_load_parts{
|
||||||
require '/GuiParts/toolbar'
|
'inputs',
|
||||||
require '/GuiParts/center'
|
--'toolbar',
|
||||||
require '/GuiParts/left'
|
--'center',
|
||||||
require '/GuiParts/popup']]
|
--'left',
|
||||||
|
--'popup'
|
||||||
|
}
|
||||||
|
|
||||||
return function(rtn)
|
return function(rtn)
|
||||||
local _return = {}
|
local _return = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user