summaryrefslogtreecommitdiff
path: root/Data/BuiltIn
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-19 21:56:08 +0800
committerchai <chaifix@163.com>2021-11-19 21:56:08 +0800
commit850d9c034792b96e2ff5ff3bbfbcc30661757aed (patch)
tree4ff5d1df7dc1917bb89b97463e4112f14b639eb9 /Data/BuiltIn
parent1cd31d14c95f9d52e30fbc611df5da4b46f048d9 (diff)
*misc
Diffstat (limited to 'Data/BuiltIn')
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Camera.lua0
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua5
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Helper.lua26
-rw-r--r--Data/BuiltIn/Libraries/GameLab/StringUtil.lua4
-rw-r--r--Data/BuiltIn/Libraries/GameLab/define.lua1
5 files changed, 35 insertions, 1 deletions
diff --git a/Data/BuiltIn/Libraries/GameLab/Camera.lua b/Data/BuiltIn/Libraries/GameLab/Camera.lua
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Data/BuiltIn/Libraries/GameLab/Camera.lua
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
index a16c2ed..cf84bff 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
@@ -15,6 +15,11 @@ local Rendering = GameLab.Engine.Rendering
local EEventType = GameLab.Events.EEventType
local Resource = GameLab.Engine.Resource
+local EditorRes
+if GAMELAB_EDITOR then
+ EditorRes = find "Scripts/EditorResources"
+end
+
GUI.BeginOnGUI = function()
GUIState.ResetControlID()
end
diff --git a/Data/BuiltIn/Libraries/GameLab/Helper.lua b/Data/BuiltIn/Libraries/GameLab/Helper.lua
new file mode 100644
index 0000000..19b586e
--- /dev/null
+++ b/Data/BuiltIn/Libraries/GameLab/Helper.lua
@@ -0,0 +1,26 @@
+local Helper = GameLab.GlobalClass("GameLab.Helper")
+
+function Helper:Ctor()
+ self.path = {}
+ self.cpath = {}
+end
+
+function Helper:RestorePath()
+ local path = package.path
+
+end
+
+function Helper:RestoreCPath()
+ local cpath = package.cpath
+
+end
+
+function Helper:AddPath()
+
+end
+
+function Helper:AddCPath()
+
+end
+
+return Helper \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/GameLab/StringUtil.lua b/Data/BuiltIn/Libraries/GameLab/StringUtil.lua
new file mode 100644
index 0000000..6b1c027
--- /dev/null
+++ b/Data/BuiltIn/Libraries/GameLab/StringUtil.lua
@@ -0,0 +1,4 @@
+local util = Gamelab.GloablTable("GameLab.StringUtil")
+
+
+return util \ No newline at end of file
diff --git a/Data/BuiltIn/Libraries/GameLab/define.lua b/Data/BuiltIn/Libraries/GameLab/define.lua
index dd4420e..ba1e130 100644
--- a/Data/BuiltIn/Libraries/GameLab/define.lua
+++ b/Data/BuiltIn/Libraries/GameLab/define.lua
@@ -1,4 +1,3 @@
-
local define = {}
define.builtInPath = "./BuiltIn"