From d755b0825987b1ef49753a8a6b8aaf02982b017c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Jan 2016 04:58:22 +1100 Subject: Add add-ons catalog to links in preferences menu D1715 by @Imaginer --- release/scripts/startup/bl_ui/space_userpref.py | 26 +++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 70cfec9c9b3..d4a8333c15f 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -63,7 +63,7 @@ class USERPREF_HT_header(Header): elif userpref.active_section == 'ADDONS': layout.operator("wm.addon_install", icon='FILESEL') layout.operator("wm.addon_refresh", icon='FILE_REFRESH') - layout.menu("USERPREF_MT_addons_dev_guides") + layout.menu("USERPREF_MT_addons_online_resources") elif userpref.active_section == 'THEMES': layout.operator("ui.reset_default_theme") layout.operator("wm.theme_install") @@ -1171,16 +1171,30 @@ class USERPREF_PT_input(Panel): #print("runtime", time.time() - start) -class USERPREF_MT_addons_dev_guides(Menu): - bl_label = "Development Guides" +class USERPREF_MT_addons_online_resources(Menu): + bl_label = "Online Resources" # menu to open web-pages with addons development guides def draw(self, context): layout = self.layout - layout.operator("wm.url_open", text="API Concepts", icon='URL').url = bpy.types.WM_OT_doc_view._prefix + "/info_quickstart.html" - layout.operator("wm.url_open", text="Addon Guidelines", icon='URL').url = "http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons" - layout.operator("wm.url_open", text="How to share your addon", icon='URL').url = "http://wiki.blender.org/index.php/Dev:Py/Sharing" + layout.operator( + "wm.url_open", text="Add-ons Catalog", icon='URL', + ).url = "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts" + + layout.separator() + + layout.operator( + "wm.url_open", text="How to share your add-on", icon='URL', + ).url = "http://wiki.blender.org/index.php/Dev:Py/Sharing" + layout.operator( + "wm.url_open", text="Add-on Guidelines", icon='URL', + ).url = "http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Addons" + layout.operator( + "wm.url_open", text="API Concepts", icon='URL', + ).url = bpy.types.WM_OT_doc_view._prefix + "/info_quickstart.html" + layout.operator("wm.url_open", text="Add-on Tutorial", icon='URL', + ).url = "http://www.blender.org/api/blender_python_api_current/info_tutorial_addon.html" class USERPREF_PT_addons(Panel): -- cgit v1.2.3