*/}}
Kaynağa Gözat

Ui clean up

YimingWu 1 yıl önce
ebeveyn
işleme
0e6dfbc46c
2 değiştirilmiş dosya ile 6 ekleme ve 8 silme
  1. 0 7
      fruits.c
  2. 6 1
      modelling_main.c

+ 0 - 7
fruits.c

@@ -253,13 +253,6 @@ void UIFruitSimple(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, l
     laShowItem(uil,c,This,"type");
 }
 
-void ScenePanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
-    laColumn* c=laFirstColumn(uil);
-    
-    laUiItem* ui=laShowCanvas(uil,c,0,"tns.world",0,-1);
-    laDefault3DViewOverlay(ui);
-}
-
 int RegisterEverything(){
     laRegisterUiTemplate("panel_fruit", "Fruits", FruitsPanel, 0, 0,0, 0,0,0);
 

+ 6 - 1
modelling_main.c

@@ -26,8 +26,13 @@ void la_DetachedScenePanel(laPanel* p){
 void ScenePanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
     laColumn* c=laFirstColumn(uil);
     
-    laUiItem* ui=laShowCanvas(uil,c,DetachedProps,"root",0,-1);
+    laUiItem* ui=laShowCanvas(uil,c,DetachedProps,"root",0,-2);
     laDefault3DViewOverlay(ui);
+
+    laUiItem* b=laBeginRow(uil,c,0,0);
+    laShowItem(uil,c,&ui->ExtraPP,"select_mode")->Flags|=LA_UI_FLAGS_EXPAND;
+    laShowItem(uil,c,&ui->ExtraPP,"select_through");
+    laEndRow(uil,b);
 }
 void DataPanel(laUiList *uil, laPropPack *This, laPropPack *DetachedProps, laColumn *UNUSED, int context){
     laColumn* c=laFirstColumn(uil);