diff --git a/aardiowin/Readme.md b/aardiowin/Readme.md new file mode 100644 index 0000000..707b333 --- /dev/null +++ b/aardiowin/Readme.md @@ -0,0 +1,11 @@ +## 编译 +1. 使用 aardio 打开项目 + + + + + + + +## 辅助 AI +https://yuanqi.tencent.com/agent/ZsUaavawqWFp \ No newline at end of file diff --git a/aardiowin/lib/init.aardio b/aardiowin/lib/init.aardio index 04665bb..73615f2 100644 --- a/aardiowin/lib/init.aardio +++ b/aardiowin/lib/init.aardio @@ -24,9 +24,10 @@ namespace init{ // 配置载入函数 loadConfigs = function() { + import io; + import util; - - gLog.print("dir"); + gLog.print("loadConfigs"); var configs = {}; var currentPath = fsys.getCurDir(); gLog.print("currentPath", currentPath); @@ -62,7 +63,8 @@ namespace init{ // 合并配置,后读取的覆盖先读取的 object.merge(configs, appDataConfig, true); } - + + gLog.print("configs", util.table.stringify(configs, true)); return configs; }; diff --git a/aardiowin/main.aardio b/aardiowin/main.aardio index d99e48b..80b7f95 100644 --- a/aardiowin/main.aardio +++ b/aardiowin/main.aardio @@ -7,15 +7,22 @@ init.init(); var gConfig = init.loadConfigs(); var gDebug = init.getDebug(); + + + +// 启动界面 /*DSG{{*/ -mainForm = win.form(text="awin";right=gConfig.window.width;bottom=gConfig.window.height;border="thin";max=false;min=false) +mainForm = win.form(text="awin";right=1;bottom=1;border="thin";max=false;min=false) mainForm.add() /*}}*/ -// 启动界面 +// 日志 var gLog = init.getLog(); -gLog.print("web view") +gLog.print("width=" , gConfig.window.width) +gLog.print("height=" , gConfig.window.height) +mainForm.resize(gConfig.window.width, gConfig.window.height); + import web.view; var theView = web.view(mainForm);