summaryrefslogtreecommitdiff
path: root/Data
diff options
context:
space:
mode:
Diffstat (limited to 'Data')
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua4
-rw-r--r--Data/Libraries/GameLab/Editor/Window/GUIWindow.lua12
2 files changed, 14 insertions, 2 deletions
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
index 7ed156b..3030b38 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua
@@ -70,4 +70,8 @@ GUI.HorizontalScrollbar = function()
end
+GUI.DrawLine = function()
+
+end
+
return GUI \ No newline at end of file
diff --git a/Data/Libraries/GameLab/Editor/Window/GUIWindow.lua b/Data/Libraries/GameLab/Editor/Window/GUIWindow.lua
index 53f08a8..e434aed 100644
--- a/Data/Libraries/GameLab/Editor/Window/GUIWindow.lua
+++ b/Data/Libraries/GameLab/Editor/Window/GUIWindow.lua
@@ -61,6 +61,14 @@ GUIWindow.set_position = function(self, position)
self.m_Native:SetPosition({position.x, position.y, position.width, position.height})
end
+GUIWindow.Start = function(self)
+
+end
+
+GUIWindow.Destroy = function(self)
+
+end
+
GUIWindow.SetContainerWindow = function(self, containerWindow)
self.m_ContainerWindow = containerWindow
self.m_Native:SetContainerWindow(containerWindow:GetNative())
@@ -85,6 +93,7 @@ end
-- 最主要的回调函数,同时处理窗口管理、事件、布局、渲染
GUIWindow.OnGUI = function(self)
+ Debug.Log("OnGUI")
self:ClearBackground()
local event = Event.current
@@ -102,12 +111,11 @@ end
GUIWindow.OnFocus = function(self)
Debug.Log("GUIWindow.OnFocus")
-end
+end
GUIWindow.ClearBackground = function(self)
GL.ClearColor(self.m_ClearColor)
GL.Clear(GL.EBufferType.ColorBuffer)
-
end
return GUIWindow \ No newline at end of file