Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Bonavita <mindrones@gmail.com>2010-11-28 21:22:23 +0300
committerLuca Bonavita <mindrones@gmail.com>2010-11-28 21:22:23 +0300
commit3f6eb67b7718e329a482d71d2340989ee0a15e76 (patch)
tree4ea23e3b60cca995668d5fde02deedde59c4373c
parentb7d0715284e1177ab8c31a998358d23b5d0b11dd (diff)
== 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".
-rw-r--r--release/scripts/ui/space_userpref.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py
index 936ff84e525..6ce58344b37 100644
--- a/release/scripts/ui/space_userpref.py
+++ b/release/scripts/ui/space_userpref.py
@@ -809,6 +809,19 @@ class USERPREF_PT_input(InputKeyMapPanel):
#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'
@@ -941,6 +954,11 @@ class USERPREF_PT_addons(bpy.types.Panel):
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()