*/}}
Explorar el Código

adapt to new init

YimingWu hace 1 año
padre
commit
bb9c8ecd4c
Se han modificado 3 ficheros con 10 adiciones y 3 borrados
  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;
 }