[Bf-blender-cvs] [d755b08] master: Add add-ons catalog to links in preferences menu
Campbell Barton
noreply at git.blender.org
Thu Jan 7 19:25:11 CET 2016
Commit: d755b0825987b1ef49753a8a6b8aaf02982b017c
Author: Campbell Barton
Date: Fri Jan 8 04:58:22 2016 +1100
Branches: master
https://developer.blender.org/rBd755b0825987b1ef49753a8a6b8aaf02982b017c
Add add-ons catalog to links in preferences menu
D1715 by @Imaginer
===================================================================
M release/scripts/startup/bl_ui/space_userpref.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 70cfec9..d4a8333 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):
More information about the Bf-blender-cvs
mailing list