*/}}
Browse Source

Some data api naming/type change for ui

YimingWu 4 months ago
parent
commit
e1d879dc7e
2 changed files with 4 additions and 3 deletions
  1. 2 1
      resources/la_properties.c
  2. 2 2
      resources/la_templates.c

+ 2 - 1
resources/la_properties.c

@@ -1131,7 +1131,7 @@ void la_RegisterTNSProps(){
     if(!MAIN.InitArgs.HasWorldObjects) return;
 
     p = laAddPropertyContainer("tns_world", "World", "3D World Structure", 0,0,sizeof(tnsWorld),tnspost_World,0,1);{
-        sp = laAddSubGroup(p, "root_objects", "Root Objects", "List of all root objects", "tns_root_object",0,0,0,-1,0,0,0,0,0,0,offsetof(tnsWorld, RootObjects), 0);
+        sp = laAddSubGroup(p, "root_objects", "Root Objects", "List of all root objects", "tns_object",0,0,0,-1,0,0,0,0,0,0,offsetof(tnsWorld, RootObjects), 0);
         laSubGroupDetachable(sp, tnsget_detached_FirstRootObject, laget_ListNext);
         laAddSubGroup(p, "active_root", "Active Root Object", "Global active root object", "tns_object",0,0,0,offsetof(tnsWorld,ActiveRoot),tnsget_detached_FirstRootObject,0,laget_ListNext,0,0,0,0,LA_UDF_REFER);
         sp = laAddSubGroup(p, "objects", "Objects", "List of all objects", "tns_object",tnsget_ObjectType, 0,0,-1,0,0,0,0,0,0,offsetof(tnsWorld, AllObjects), 0);
@@ -1186,6 +1186,7 @@ void la_RegisterTNSProps(){
 
     p = laAddPropertyContainer("tns_object", "Object", "3D Object Item", 0,tnsui_BaseObjectProperties,sizeof(tnsObject), tnspost_Object, 0,2);{
         TNS_PC_OBJECT_GENERIC=p;
+        laAddSubGroup(p, "base", "Base", "Object base", "tns_object",0,0,0,-1,laget_Self,0,0,0,0,0,0,LA_UDF_REFER|LA_UDF_IGNORE);
         laAddStringProperty(p, "name", "Object Name", "The Name Of The Object", 0,0,0,0,1, offsetof(tnsObject, Name), 0,0,0,0,LA_AS_IDENTIFIER);
         laAddIntProperty(p,"flags","Flags","Flags",0,0,0,0,0,0,0,0,offsetof(tnsObject,Flags),0,0,0,0,0,0,0,0,0,0,LA_READ_ONLY);
         ep = laAddEnumProperty(p, "show", "Show", "Show object in the viewport", 0,0,0,0,0,offsetof(tnsObject, Show), 0,0,0,0,0,0,0,0,0,0);{

+ 2 - 2
resources/la_templates.c

@@ -582,10 +582,10 @@ void laui_DefaultMenuBarActual(laUiList *uil, laPropPack *pp, laPropPack *actins
                 muil = laMakeMenuPage(uil, c, "⯆");{ mc = laFirstColumn(muil);
                     laUiItem*b,*ui;
                     b=laBeginRow(muil,mc,0,0); laShowLabel(muil,mc,"γ",0,0);
-                    ui=laShowItem(muil, mc, 0, "la.windows.composing_gamma"); ui->Expand=1;
+                    ui=laShowItemFull(muil, mc, 0, "la.windows.composing_gamma",0,"text=Gamma",0,0); ui->Expand=1;
                     laShowItem(muil,mc,&ui->PP,"restore")->Flags|=LA_UI_FLAGS_NO_CONFIRM|LA_UI_FLAGS_ICON; laEndRow(muil,b);
                     b=laBeginRow(muil,mc,0,0); laShowLabel(muil,mc,"◩",0,0);
-                    ui=laShowItem(muil, mc, 0, "la.windows.composing_blackpoint"); ui->Expand=1;
+                    ui=laShowItemFull(muil, mc, 0, "la.windows.composing_blackpoint",0,"text=Blackpoint",0,0); ui->Expand=1;
                     laShowItem(muil,mc,&ui->PP,"restore")->Flags|=LA_UI_FLAGS_NO_CONFIRM|LA_UI_FLAGS_ICON; laEndRow(muil,b);
                 }
             }laEndCondition(uil, cmp);