Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_dopesheet.py
| Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | class DOPESHEET_MT_editor_menus(Menu): | ||||
| bl_label = "" | bl_label = "" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| layout.menu("DOPESHEET_MT_view") | layout.menu("DOPESHEET_MT_view") | ||||
| layout.menu("DOPESHEET_MT_select") | layout.menu("DOPESHEET_MT_select") | ||||
| if st.show_markers: | |||||
| layout.menu("DOPESHEET_MT_marker") | layout.menu("DOPESHEET_MT_marker") | ||||
| if st.mode == 'DOPESHEET' or (st.mode == 'ACTION' and st.action is not None): | if st.mode == 'DOPESHEET' or (st.mode == 'ACTION' and st.action is not None): | ||||
| layout.menu("DOPESHEET_MT_channel") | layout.menu("DOPESHEET_MT_channel") | ||||
| elif st.mode == 'GPENCIL': | elif st.mode == 'GPENCIL': | ||||
| layout.menu("DOPESHEET_MT_gpencil_channel") | layout.menu("DOPESHEET_MT_gpencil_channel") | ||||
| if st.mode != 'GPENCIL': | if st.mode != 'GPENCIL': | ||||
| layout.menu("DOPESHEET_MT_key") | layout.menu("DOPESHEET_MT_key") | ||||
| Show All 17 Lines | def draw(self, context): | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st, "use_realtime_update") | layout.prop(st, "use_realtime_update") | ||||
| layout.prop(st, "show_sliders") | layout.prop(st, "show_sliders") | ||||
| layout.prop(st, "show_group_colors") | layout.prop(st, "show_group_colors") | ||||
| layout.prop(st, "show_interpolation") | layout.prop(st, "show_interpolation") | ||||
| layout.prop(st, "show_extremes") | layout.prop(st, "show_extremes") | ||||
| layout.prop(st, "show_marker_lines") | |||||
| layout.prop(st, "use_auto_merge_keyframes") | layout.prop(st, "use_auto_merge_keyframes") | ||||
| layout.separator() | |||||
| layout.prop(st, "show_markers") | |||||
| layout.separator() | |||||
| 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.operator("anim.previewrange_set") | layout.operator("anim.previewrange_set") | ||||
| layout.operator("anim.previewrange_clear") | layout.operator("anim.previewrange_clear") | ||||
| layout.operator("action.previewrange_set") | layout.operator("action.previewrange_set") | ||||
| ▲ Show 20 Lines • Show All 326 Lines • Show Last 20 Lines | |||||