Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 2,187 Lines • ▼ Show 20 Lines | def draw_props(self, context, layout): | ||||
| split = layout.split(factor=0.66) | split = layout.split(factor=0.66) | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(experimental, "use_virtual_reality_immersive_drawing", text="Continuous Immersive Drawing") | col.prop(experimental, "use_virtual_reality_immersive_drawing", text="Continuous Immersive Drawing") | ||||
| col = split.column() | col = split.column() | ||||
| col.operator("wm.url_open", text=task, icon='URL').url = "https://developer.blender.org/" + task | col.operator("wm.url_open", text=task, icon='URL').url = "https://developer.blender.org/" + task | ||||
| """ | """ | ||||
| class USERPREF_PT_experimental_uv_image_editor(ExperimentalPanel, Panel): | |||||
| bl_label = "UV/Image Editor" | |||||
| def draw_props(self, context, layout): | |||||
| prefs = context.preferences | |||||
| experimental = prefs.experimental | |||||
| layout.active = not experimental.use_experimental_all | |||||
| task = "T67530" | |||||
| split = layout.split(factor=0.66) | |||||
| col = split.split() | |||||
| col.prop(experimental, "use_draw_manager_for_uv_image_editor", text="Use Draw Manager") | |||||
| col = split.split() | |||||
| col.operator("wm.url_open", text=task, icon='URL').url = "https://developer.blender.org/" + task | |||||
| # Order of registration defines order in UI, | # Order of registration defines order in UI, | ||||
| # so dynamically generated classes are 'injected' in the intended order. | # so dynamically generated classes are 'injected' in the intended order. | ||||
| classes = ( | classes = ( | ||||
| USERPREF_PT_theme_user_interface, | USERPREF_PT_theme_user_interface, | ||||
| *ThemeGenericClassGenerator.generate_panel_classes_for_wcols(), | *ThemeGenericClassGenerator.generate_panel_classes_for_wcols(), | ||||
| USERPREF_HT_header, | USERPREF_HT_header, | ||||
| USERPREF_PT_navigation_bar, | USERPREF_PT_navigation_bar, | ||||
| USERPREF_PT_save_preferences, | USERPREF_PT_save_preferences, | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | classes = ( | ||||
| USERPREF_PT_addons, | USERPREF_PT_addons, | ||||
| USERPREF_PT_studiolight_lights, | USERPREF_PT_studiolight_lights, | ||||
| USERPREF_PT_studiolight_light_editor, | USERPREF_PT_studiolight_light_editor, | ||||
| USERPREF_PT_studiolight_matcaps, | USERPREF_PT_studiolight_matcaps, | ||||
| USERPREF_PT_studiolight_world, | USERPREF_PT_studiolight_world, | ||||
| USERPREF_PT_experimental_all, | USERPREF_PT_experimental_all, | ||||
| USERPREF_PT_experimental_uv_image_editor, | |||||
| # Add dynamically generated editor theme panels last, | # Add dynamically generated editor theme panels last, | ||||
| # so they show up last in the theme section. | # so they show up last in the theme section. | ||||
| *ThemeGenericClassGenerator.generate_panel_classes_from_theme_areas(), | *ThemeGenericClassGenerator.generate_panel_classes_from_theme_areas(), | ||||
| ) | ) | ||||
| if __name__ == "__main__": # only for live edit. | if __name__ == "__main__": # only for live edit. | ||||
| from bpy.utils import register_class | from bpy.utils import register_class | ||||
| for cls in classes: | for cls in classes: | ||||
| register_class(cls) | register_class(cls) | ||||