*/}}
瀏覽代碼

adapt to new init

YimingWu 1 年之前
父節點
當前提交
bb9c8ecd4c
共有 3 個文件被更改,包括 10 次插入3 次删除
  1. 6 1
      modelling_main.c
  2. 3 1
      operator.c
  3. 1 1
      widgets.c

+ 6 - 1
modelling_main.c

@@ -56,7 +56,10 @@ int RegisterEverything(){
 }
 
 int main(int argc, char *argv[]){
-    laGetReady();
+    laInitArguments ia={0};
+    laSetCompleteInitArguments(&ia);
+    laProcessInitArguments(argc,argv,&ia);
+    laGetReadyWith(&ia);
     RegisterEverything();
 
     laRefreshUDFRegistries();
@@ -81,4 +84,6 @@ int main(int argc, char *argv[]){
 
     laStartWindow(w);
     laMainLoop();
+
+    return 0;
 }

+ 3 - 1
operator.c

@@ -62,7 +62,9 @@ int main(int argc, char *argv[]){
     if(!MAIN.Windows.pFirst){
         laWindow* w = laDesignWindow(-1,-1,600,600);
         laLayout* l = laDesignLayout(w,"My Layout");
-        laCreatePanel(l->FirstBlock,"my_panel");
+        laSplitBlockHorizon(l->FirstBlock,0.5);
+        laCreatePanel(l->FirstBlock->B1,"LAUI_terminal");
+        laCreatePanel(l->FirstBlock->B2,"my_panel");
         laStartWindow(w);
     }
     laMainLoop();

+ 1 - 1
widgets.c

@@ -54,7 +54,7 @@ void Widgets(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColum
     laShowSeparator(uil,c);
 
     laShowLabel(uil,cl,"This is a 3D viewer",0,0);
-    laShowCanvas(uil,cl,0,0,"la_3DView",6);
+    laShowCanvas(uil,cl,0,"tns","la_3DView",6);
     laShowLabel(uil,cr,"And this is 2D",0,0);
     laCanvasExtra*ce=laShowCanvas(uil,cr,0,"tns.texture_list",0,6)->Extra; ce->ZoomX=10; ce->ZoomY=10;
 }