VSE UI: Text panel adjustments
This patch adjusts a number of text panel elements: - The text entry widget has become larger in order to distinguish it from the strip name. - Wrap has been moved up under the text, since this doesn't relate to bounding box. - Alignment X/Y has been renamed to Anchor X/Y, since this is the achor point of the text point, and not the Alignment of the text. - Offset and Crop was completely missing from the Text strip panel, these has been added. Reviewed By: billreynish Differential Revision: https://developer.blender.org/D7869
This commit is contained in:

committed by
Richard Antalik

parent
adf9ff6359
commit
b5cfb23fa7
@@ -1152,9 +1152,13 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
|
||||
|
||||
elif strip_type == 'TEXT':
|
||||
layout = self.layout
|
||||
layout.use_property_split = False
|
||||
layout.prop(strip, "text", text="")
|
||||
layout.use_property_split = True
|
||||
col = layout.column()
|
||||
col.scale_x = 1.3
|
||||
col.scale_y = 1.3
|
||||
col.use_property_split = False
|
||||
col.prop(strip, "text", text="")
|
||||
col.use_property_split = True
|
||||
layout.prop(strip, "wrap_width", text="Wrap Width")
|
||||
|
||||
col = layout.column(align=True)
|
||||
if strip_type == 'SPEED':
|
||||
@@ -1191,9 +1195,8 @@ class SEQUENCER_PT_effect_text_layout(SequencerButtonsPanel, Panel):
|
||||
layout.use_property_split = True
|
||||
col = layout.column()
|
||||
col.prop(strip, "location", text="Location")
|
||||
col.prop(strip, "align_x", text="Alignment X")
|
||||
col.prop(strip, "align_x", text="Anchor X")
|
||||
col.prop(strip, "align_y", text="Y")
|
||||
col.prop(strip, "wrap_width", text="Wrap Width")
|
||||
|
||||
|
||||
class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel):
|
||||
@@ -1683,7 +1686,7 @@ class SEQUENCER_PT_adjust_transform(SequencerButtonsPanel, Panel):
|
||||
|
||||
return strip.type in {
|
||||
'MOVIE', 'IMAGE', 'SCENE', 'MOVIECLIP', 'MASK',
|
||||
'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER',
|
||||
'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'TEXT',
|
||||
'ALPHA_UNDER', 'CROSS', 'GAMMA_CROSS', 'MULTIPLY',
|
||||
'OVER_DROP', 'WIPE', 'GLOW', 'TRANSFORM', 'COLOR',
|
||||
'MULTICAM', 'SPEED', 'ADJUSTMENT', 'COLORMIX'
|
||||
|
Reference in New Issue
Block a user