[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33365] trunk/blender/release/scripts/ui/ space_userpref.py: == addons ==
Luca Bonavita
mindrones at gmail.com
Sun Nov 28 19:22:23 CET 2010
Revision: 33365
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33365
Author: mindrones
Date: 2010-11-28 19:22:23 +0100 (Sun, 28 Nov 2010)
Log Message:
-----------
== addons ==
After discussing with campbell, I'm adding a menu in the addons panel to help people to find the addons development pages
This should give more visibility to the bf-extensions project so that people know where they can share their scripts "officially".
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_userpref.py
Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py 2010-11-28 16:36:36 UTC (rev 33364)
+++ trunk/blender/release/scripts/ui/space_userpref.py 2010-11-28 18:22:23 UTC (rev 33365)
@@ -809,7 +809,20 @@
#print("runtime", time.time() - start)
+class USERPREF_MT_addons_dev_guides(bpy.types.Menu):
+ bl_label = "Addons develoment guides"
+ # menu to open webpages with addons development guides
+ def draw(self, context):
+ layout = self.layout
+ layout.operator('wm.url_open', text='API Concepts'
+ ).url = 'http://wiki.blender.org/index.php/Dev:2.5/Py/API/Intro'
+ layout.operator('wm.url_open', text='Addons guidelines',
+ ).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',
+ ).url = 'http://wiki.blender.org/index.php/Dev:Py/Sharing'
+
+
class USERPREF_PT_addons(bpy.types.Panel):
bl_space_type = 'USER_PREFERENCES'
bl_label = "Addons"
@@ -941,6 +954,11 @@
col = split.column()
col.prop(context.window_manager, "addon_search", text="", icon='VIEWZOOM')
col.prop(context.window_manager, "addon_filter", text="Filter", expand=True)
+
+ # menu to open webpages with addons development guides
+ col.separator()
+ col.label(text = ' Online Documentation', icon = 'INFO')
+ col.menu('USERPREF_MT_addons_dev_guides', text='Addons Developer Guides')
col = split.column()
More information about the Bf-blender-cvs
mailing list