Sequencer: changes to text effect strip

- default alignment to lower center.
- placement is now relative,
  so changing output size keeps correct placement.
- instead of center override, add align option (left/right/center).

Also don't use pixel-size for setting the font size, on new strips.
Better not have UI prefs impact low level API's.
This commit is contained in:
Campbell Barton
2015-07-11 02:17:06 +10:00
parent 9a3dfa1f21
commit 3443686399
4 changed files with 56 additions and 32 deletions

View File

@@ -632,13 +632,10 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
elif strip.type == 'TEXT':
col = layout.column()
col.prop(strip, "text")
col.prop(strip, "text_size")
col.prop(strip, "font_size")
col.prop(strip, "use_shadow")
col.prop(strip, "use_autocenter")
row = layout.row(align=True)
if not strip.use_autocenter:
row.prop(strip, "xpos")
row.prop(strip, "ypos")
col.prop(strip, "align")
col.prop(strip, "location")
layout.operator("sequencer.export_subtitles")
col = layout.column(align=True)