Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_time.py
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
| class TIME_MT_editor_menus(Menu): | class TIME_MT_editor_menus(Menu): | ||||
| bl_idname = "TIME_MT_editor_menus" | bl_idname = "TIME_MT_editor_menus" | ||||
| bl_label = "" | bl_label = "" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| horizontal = (layout.direction == 'VERTICAL') | horizontal = (layout.direction == 'VERTICAL') | ||||
| st = _context.space_data | |||||
| if horizontal: | if horizontal: | ||||
| row = layout.row() | row = layout.row() | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| else: | else: | ||||
| sub = layout | sub = layout | ||||
| sub.popover( | sub.popover( | ||||
| panel="TIME_PT_playback", | panel="TIME_PT_playback", | ||||
| text="Playback", | text="Playback", | ||||
| ) | ) | ||||
| sub.popover( | sub.popover( | ||||
| panel="TIME_PT_keyframing_settings", | panel="TIME_PT_keyframing_settings", | ||||
| text="Keying", | text="Keying", | ||||
| ) | ) | ||||
| if horizontal: | if horizontal: | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.menu("TIME_MT_view") | sub.menu("TIME_MT_view") | ||||
| if st.show_markers: | |||||
| sub.menu("TIME_MT_marker") | sub.menu("TIME_MT_marker") | ||||
| class TIME_MT_marker(Menu): | class TIME_MT_marker(Menu): | ||||
| bl_label = "Marker" | bl_label = "Marker" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 9 Lines | def draw(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| st = context.space_data | st = context.space_data | ||||
| layout.prop(st, "show_seconds") | layout.prop(st, "show_seconds") | ||||
| layout.prop(st, "show_locked_time") | layout.prop(st, "show_locked_time") | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st, "show_marker_lines") | layout.prop(st, "show_markers") | ||||
| layout.separator() | |||||
| layout.prop(scene, "show_keys_from_selected_only") | layout.prop(scene, "show_keys_from_selected_only") | ||||
| layout.separator() | layout.separator() | ||||
| layout.menu("TIME_MT_cache") | layout.menu("TIME_MT_cache") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines | |||||