Skip to content

Commit

Permalink
Small UI optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Feb 25, 2023
1 parent 4f5d1f1 commit f12bbb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions animationCombiner/api/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,10 @@ def draw(self, layout):
row = layout.row()
row.enabled = False
row.prop(self, "path")
row = layout.row()
row = layout.column_flow(columns=1)
row.prop(self, "name")

row = layout.row()
row.label(text="Animation length settings:")
self.length_group.draw(layout.box())
row = layout.row()
self.length_group.draw(row.box())
row.label(text="Transition settings:")
self.transition.draw(layout.box())
self.transition.draw(row.box())
12 changes: 5 additions & 7 deletions animationCombiner/ui/action_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,11 @@ def draw(self, context):
row.label(text="Final length")
row.prop(obj, "animation_length", slider=False, text="")

col = layout.column(align=True)
row = col.row(align=True)
row.operator(ImportActionOperator.bl_idname, text='Import', icon="IMPORT")
row.operator(DeleteItem.bl_idname, text='Delete', icon="REMOVE")
row = col.row(align=True)
row.operator(MoveItem.bl_idname, text='Up', icon="TRIA_UP").direction = 'UP'
row.operator(MoveItem.bl_idname, text='Down', icon="TRIA_DOWN").direction = 'DOWN'
col = layout.column_flow(columns=2, align=True)
col.operator(ImportActionOperator.bl_idname, text='Import', icon="IMPORT")
col.operator(DeleteItem.bl_idname, text='Delete', icon="REMOVE")
col.operator(MoveItem.bl_idname, text='Up', icon="TRIA_UP").direction = 'UP'
col.operator(MoveItem.bl_idname, text='Down', icon="TRIA_DOWN").direction = 'DOWN'

sublayout = layout.box()
if obj.active >= 0 and obj.actions:
Expand Down

0 comments on commit f12bbb6

Please sign in to comment.