def draw(self, context): # If 'url_prefill_from_blender' becomes slow it could be made into a separate operator # to avoid constructing the bug report just to show this menu. from bl_ui_utils.bug_report_url import url_prefill_from_blender layout = self.layout show_developer = context.preferences.view.show_developer_ui layout.operator( "wm.url_open", text="Manual", icon='HELP', ).url = "https://docs.blender.org/manual/en/dev/" layout.operator( "wm.url_open", text="Tutorials", icon='URL', ).url = "https://www.blender.org/tutorials" layout.operator( "wm.url_open", text="Support", icon='URL', ).url = "https://www.blender.org/support" layout.separator() layout.operator( "wm.url_open", text="User Communities", icon='URL', ).url = "https://www.blender.org/community/" layout.operator( "wm.url_open", text="Developer Community", icon='URL', ).url = "https://devtalk.blender.org" layout.separator() layout.operator( "wm.url_open", text="Python API Reference", icon='URL', ).url = bpy.types.WM_OT_doc_view._prefix if show_developer: layout.operator( "wm.url_open", text="Developer Documentation", icon='URL', ).url = "https://wiki.blender.org/wiki/Main_Page" layout.operator("wm.operator_cheat_sheet", icon='TEXT') layout.separator() layout.operator( "wm.url_open", text="Report a Bug", icon='URL', ).url = url_prefill_from_blender() layout.separator() layout.operator("wm.sysinfo")
def draw(self, context): # If 'url_prefill_from_blender' becomes slow it could be made into a separate operator # to avoid constructing the bug report just to show this menu. from bl_ui_utils.bug_report_url import url_prefill_from_blender layout = self.layout show_developer = context.preferences.view.show_developer_ui layout.operator( "wm.url_open", text="Manual", icon='HELP', ).url = "https://docs.blender.org/manual/en/dev/" layout.operator( "wm.url_open", text="Report a Bug", icon='URL', ).url = url_prefill_from_blender() layout.separator() layout.operator( "wm.url_open", text="User Communities", icon='URL', ).url = "https://www.blender.org/community/" layout.operator( "wm.url_open", text="Developer Community", icon='URL', ).url = "https://www.blender.org/get-involved/developers/" layout.separator() layout.operator( "wm.url_open", text="Blender Website", icon='URL', ).url = "https://www.blender.org" layout.operator( "wm.url_open", text="Release Notes", icon='URL', ).url = "https://www.blender.org/download/releases/%d-%d/" % bpy.app.version[: 2] layout.operator( "wm.url_open", text="Credits", icon='URL', ).url = "https://www.blender.org/about/credits/" layout.separator() layout.operator( "wm.url_open", text="Blender Store", icon='URL', ).url = "https://store.blender.org" layout.operator( "wm.url_open", text="Development Fund", icon='URL', ).url = "https://fund.blender.org" layout.operator( "wm.url_open", text="Donate", icon='URL', ).url = "https://www.blender.org/foundation/donation-payment/" layout.separator() if show_developer: layout.operator( "wm.url_open", text="Python API Reference", icon='URL', ).url = bpy.types.WM_OT_doc_view._prefix layout.operator("wm.operator_cheat_sheet", icon='TEXT') layout.operator("wm.sysinfo") layout.separator() layout.operator("wm.splash", icon='BLENDER')