small UI improvement

pull/5/head
Clément Ducarteron 2023-03-16 18:39:15 +01:00
parent c75c5469f9
commit 4dc52b1268
2 changed files with 10 additions and 7 deletions

View File

@ -36,19 +36,22 @@ class VSETB_PT_main(VSETB_main, Panel):
if settings.toogle_prefs:
box = col.box()
box.use_property_split = True
box.use_property_decorate = False
col = box.column(align=True)
col.use_property_split = True
col.use_property_decorate = False
box.prop(settings, 'project_name', text='Projects')
col.prop(settings, 'project_name', text='Projects')
if project:
if project.episodes:
box.prop(project, 'episode_name', text='Episodes')
col.prop(project, 'episode_name', text='Episodes')
box.prop(project, 'shot_template')
box.operator('vse_toolbox.new_episode', text='Add Episode', icon='IMPORT')
col.prop(project, 'shot_template')
col.separator()
col.operator('vse_toolbox.new_episode', text='Add Episode', icon='IMPORT')
# TODO FAIRE DES VRAIS OPS
col = layout.column()
row = col.row(align=True)
row.operator('sequencer.import', text='Import', icon='IMPORT')
row.operator('sequencer.export_csv', text='Export', icon='EXPORT')

View File

@ -111,7 +111,7 @@ class VSETB_PGT_settings(PropertyGroup):
projects : CollectionProperty(type=Project)
project_name : EnumProperty(items=get_project_items, update=update_episodes)
tracker_name : EnumProperty(items=get_tracker_items)
toogle_prefs : BoolProperty(description='Toogle VSE ToolBox Preferences')
toogle_prefs : BoolProperty(description='Toogle VSE ToolBox Preferences', default=True)
channel : EnumProperty(
items=[