summaryrefslogtreecommitdiff
path: root/Resources/Scripts/EditorApplication.lua
blob: d7beb3cbf7df5f176b520a50c00f54f30d245c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require("LuaPanda").start("127.0.0.1",8818);

local Debug = GameLab.Debug
local GUI = GameLab.Editor.GUI

local app = GameLab.Editor.EditorApplication.New()

if app == nil then 
	Debug.LogError("app is nil")
end 

local mainWindow = GUI.ContainnerWindow.New({400, 400, 800, 500}, GUI.EShowMode.MainWindow, {100, 100}, {700, 700}) 
mainWindow:SetTitle("GameLab")
mainWindow:SetIcon("./Icon/GameLab.ico")

app:SetMainWindow(mainWindow)

local guiWindow = GUI.GUIWindow.New() 
guiWindow:SetContainnerWindow(mainWindow)
guiWindow:SetPosition({0,0, 500, 400})

Debug.Log(package.cpath)

while true do 

	app:PullMessage()

end