*/}}
浏览代码

Collection category

Yiming Wu 2 年之前
父节点
当前提交
b0cf0674d5
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 3 3
      main.c
  2. 2 2
      modelling_main.c

+ 3 - 3
main.c

@@ -307,7 +307,7 @@ int RegisterCalculator(){
 
     CC=memAcquire(sizeof(CalculatorCollection));
 
-    laRegisterUiTemplate("panel_calc", "Calculator", CalcPanel, 0, 0);
+    laRegisterUiTemplate("panel_calc", "Calculator", CalcPanel, 0, 0,0);
 
     laCreateOperatorType("CALC_add_calculator", "Add Calculator", "Add a calculator", 0,0,0,OPINV_AddCalculator,0,'+',0);
     laCreateOperatorType("CALC_add_rack", "Add Rack", "Add a rack into the calculator", 0,0,0,OPINV_AddRack,0,'+',0);
@@ -591,8 +591,8 @@ void ScenePanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laCo
 }
 
 int RegisterEverything(){
-    laRegisterUiTemplate("panel_fruit", "Fruits", FruitsPanel, 0, 0);
-    laRegisterUiTemplate("panel_scene", "Scene", ScenePanel, 0, 0);
+    laRegisterUiTemplate("panel_fruit", "Fruits", FruitsPanel, 0, 0,0);
+    laRegisterUiTemplate("panel_scene", "Scene", ScenePanel, 0, 0,0);
 
     laCreateOperatorType("BOWL_add", "Add Bowl", "Add a bowl", 0,0,0,OPINV_AddBowl,0,'+',0);
     laCreateOperatorType("BOWL_remove", "Remove Bowl", "Remove a bowl", 0,0,0,OPINV_RemoveBowl,0,'-',0);

+ 2 - 2
modelling_main.c

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