*/}}
YimingWu 2 роки тому
батько
коміт
e14ef79c48
7 змінених файлів з 9 додано та 9 видалено
  1. 2 2
      calculator.c
  2. 1 1
      example_viewer.c
  3. 1 1
      fruits.c
  4. 2 2
      modelling_main.c
  5. 1 1
      simplest.c
  6. 1 1
      widget_flags.c
  7. 1 1
      widgets.c

+ 2 - 2
calculator.c

@@ -296,8 +296,8 @@ int RegisterCalculator(){
 
     CC=memAcquire(sizeof(CalculatorCollection));
 
-    laRegisterUiTemplate("panel_calc", "Calculator", CalcPanel, 0, 0,0, 0);
-    laRegisterUiTemplate("panel_calc_regular", "Data", CalcPanelRegular, 0, 0,0, 0);
+    laRegisterUiTemplate("panel_calc", "Calculator", CalcPanel, 0, 0,0, 0,0,0);
+    laRegisterUiTemplate("panel_calc_regular", "Data", CalcPanelRegular, 0, 0,0, 0,0,0);
 
     laCreateOperatorType("CALC_add_calculator", "Add Calculator", "Add a calculator", 0,0,0,INV_AddCalculator,0,'+',0);
     laCreateOperatorType("CALC_add_rack", "Add Rack", "Add a rack into the calculator", 0,0,0,INV_AddRack,0,'+',0);

+ 1 - 1
example_viewer.c

@@ -298,7 +298,7 @@ int main(int argc, char *argv[]){
 
     InitExamples();
 
-    laRegisterUiTemplate("examples_list","Examples List", ExamplesList,0,0,"Demonstration", 0);
+    laRegisterUiTemplate("examples_list","Examples List", ExamplesList,0,0,"Demonstration",0,0,0);
 
     laWindow* w = laDesignWindow(-1,-1,800,600);
     laLayout* l = laDesignLayout(w,"LaGUI Examples");

+ 1 - 1
fruits.c

@@ -261,7 +261,7 @@ void ScenePanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCo
 }
 
 int RegisterEverything(){
-    laRegisterUiTemplate("panel_fruit", "Fruits", FruitsPanel, 0, 0,0, 0);
+    laRegisterUiTemplate("panel_fruit", "Fruits", FruitsPanel, 0, 0,0, 0,0,0);
 
     laCreateOperatorType("BOWL_add", "Add Bowl", "Add a bowl", 0,0,0,INV_AddBowl,0,'+',0);
     laCreateOperatorType("BOWL_remove", "Remove Bowl", "Remove a bowl", 0,0,0,INV_RemoveBowl,0,'-',0);

+ 2 - 2
modelling_main.c

@@ -38,8 +38,8 @@ void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCol
 }
 
 int RegisterEverything(){
-    laRegisterUiTemplate("panel_scene", "Scene", ScenePanel, la_DetachedScenePanel, 0,0, 0);
-    laRegisterUiTemplate("panel_data", "Data", DataPanel, 0, 0,0, 0);
+    laRegisterUiTemplate("panel_scene", "Scene", ScenePanel, la_DetachedScenePanel, 0,0, 0,25,25);
+    laRegisterUiTemplate("panel_data", "Data", DataPanel, 0, 0,0, 0,0,20);
 
     tnsObject* s=tnsCreateRootObject("My Root");
     tnsObject* o=tnsCreateLight(s,"Sun",100,100,100,1,1);

+ 1 - 1
simplest.c

@@ -28,7 +28,7 @@ int main(int argc, char *argv[]){
 
     transSetLanguage("zh-CN");
 
-    laRegisterUiTemplate("my_panel","My Panel", MyPanel,0,0,"Demonstration", 0);
+    laRegisterUiTemplate("my_panel","My Panel", MyPanel,0,0,"Demonstration", 0,0,0);
 
     laWindow* w = laDesignWindow(-1,-1,600,600);
     laLayout* l = laDesignLayout(w,"My Layout");

+ 1 - 1
widget_flags.c

@@ -118,7 +118,7 @@ void Widgets(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColum
 int main(int argc, char *argv[]){
     laGetReady();
 
-    laRegisterUiTemplate("my_widget_flags","Widget Flags", Widgets,0,0,"Demonstration", 0);
+    laRegisterUiTemplate("my_widget_flags","Widget Flags", Widgets,0,0,"Demonstration", 0,0,0);
 
     laWindow* w = laDesignWindow(-1,-1,1000,600);
     laLayout* l = laDesignLayout(w,"My Layout");

+ 1 - 1
widgets.c

@@ -62,7 +62,7 @@ void Widgets(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColum
 int main(int argc, char *argv[]){
     laGetReady();
 
-    laRegisterUiTemplate("my_widgets","Widgets", Widgets,0,0,"Demonstration", 0);
+    laRegisterUiTemplate("my_widgets","Widgets", Widgets,0,0,"Demonstration", 0,0,0);
 
     laWindow* w = laDesignWindow(-1,-1,400,800);
     laLayout* l = laDesignLayout(w,"My Layout");