Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 2,280 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| sequencer_tool_settings = tool_settings.sequencer_tool_settings | sequencer_tool_settings = tool_settings.sequencer_tool_settings | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| col = layout.column(heading="Snap to", align=True) | col = layout.column(heading="Snap to", align=True) | ||||
| col.prop(sequencer_tool_settings, "snap_seq_element", expand=True) | col.prop(sequencer_tool_settings, "snap_to_current_frame" ) | ||||
| col.prop(sequencer_tool_settings, "snap_to_hold_offset") | |||||
HooglyBoogly: No need to specify the text here since it's the same as the RNA property names. | |||||
| col = layout.column(heading="Ignore", align=True) | col = layout.column(heading="Ignore", align=True) | ||||
| col.prop(sequencer_tool_settings, "snap_ignore_muted", text="Muted Strips") | col.prop(sequencer_tool_settings, "snap_ignore_muted", text="Muted Strips") | ||||
| col.prop(sequencer_tool_settings, "snap_ignore_sound",text="Sound Strips") | col.prop(sequencer_tool_settings, "snap_ignore_sound",text="Sound Strips") | ||||
| col = layout.column() | |||||
| col.prop(sequencer_tool_settings, "snap_distance", slider=True, text="Distance") | |||||
| classes = ( | classes = ( | ||||
| SEQUENCER_MT_change, | SEQUENCER_MT_change, | ||||
| SEQUENCER_HT_tool_header, | SEQUENCER_HT_tool_header, | ||||
| SEQUENCER_HT_header, | SEQUENCER_HT_header, | ||||
| SEQUENCER_MT_editor_menus, | SEQUENCER_MT_editor_menus, | ||||
| SEQUENCER_MT_range, | SEQUENCER_MT_range, | ||||
| SEQUENCER_MT_view, | SEQUENCER_MT_view, | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||
No need to specify the text here since it's the same as the RNA property names.