diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-07 20:58:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-07 20:58:22 +0300 |
commit | d755b0825987b1ef49753a8a6b8aaf02982b017c (patch) | |
tree | 60ff11c25b3f84e772239fb1723340679dd5c3ee /release | |
parent | 5fd3b07647f18ca6e4d487e5420912310e578d6b (diff) |
Add add-ons catalog to links in preferences menu
D1715 by @Imaginer
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 26 |
1 files changed, 20 insertions, 6 deletions
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): |