From 61e3bcaaf395e7059d1f88dd3f6d9e4b01493600 Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Mon, 13 May 2024 23:17:33 +0200 Subject: [PATCH] Tweak the UI --- Fange Pipeline/ui/export.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Fange Pipeline/ui/export.py b/Fange Pipeline/ui/export.py index 8dbc642..4edd2fe 100644 --- a/Fange Pipeline/ui/export.py +++ b/Fange Pipeline/ui/export.py @@ -11,19 +11,19 @@ class GRAOU_PT_panel(bpy.types.Panel): def draw(self, context): layout = self.layout - layout.use_property_split = True - layout.use_property_decorate = False + col = layout.column(align=True) + col.label(text='Main Config:') + col.operator('graou.build_scene', text='Init Scene', icon='OUTLINER') + col.prop(context.scene.graou_props, 'socket_collection', text='Use socket', toggle=True) - row = layout.row(align=False) - row.label(text='Main Config:') - layout.operator('graou.build_scene', text='Init Scene', icon='OUTLINER') + layout.separator() - row = layout.row(align=False) - row.label(text='Asset:') - layout.operator('graou.make_collision', text='Make all collision', icon='MOD_PHYSICS') + layout.label(text='Asset:') + layout.operator('graou.make_collision', text='Generate collision', icon='MOD_PHYSICS') - row = layout.row(align=True) - row.label(text='Export scene:') + layout.separator() + + layout.label(text='Export scene:') box = layout.box() box.label(text='Sanity Check') layout.operator('graou.building_export', text='Export all assets', icon='EXPORT')