diff options
author | chai <chaifix@163.com> | 2021-11-17 22:33:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-17 22:33:40 +0800 |
commit | b34310c631989551054d456eb47aaab5ded266a4 (patch) | |
tree | 42a6d54c53b4a1943d1ac0dc2e81b08a11c670ef /Data | |
parent | d56308e585e056038dca8a32cc79d131015581de (diff) |
*misc
Diffstat (limited to 'Data')
-rw-r--r-- | Data/BuiltIn/Libraries/GameLab/Engine/GUI/IMGUI.lua | 4 | ||||
-rw-r--r-- | Data/Libraries/GameLab/Editor/Window/GUIWindow.lua | 12 |
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 |