-
Notifications
You must be signed in to change notification settings - Fork 3
/
menus.py
32 lines (24 loc) · 1.02 KB
/
menus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from bpy.types import Menu
class BONEWIDGET_MT_bw_specials(Menu):
bl_label = "Bone Widget Specials"
def draw(self, context):
layout = self.layout
layout.operator("bonewidget.add_widgets", icon="ADD", text="Add Widget to library")
layout.operator("bonewidget.remove_widgets", icon="REMOVE",
text="Remove Widget from library")
layout.operator("bonewidget.add_custom_image", icon="FILE_IMAGE",
text="Add Custom Image to Widget")
layout.separator()
layout.operator("bonewidget.import_library", icon="IMPORT", text="Import Widget Library")
layout.operator("bonewidget.export_library", icon="EXPORT", text="Export Widget Library")
classes = (
BONEWIDGET_MT_bw_specials,
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
def unregister():
from bpy.utils import unregister_class
for cls in classes:
unregister_class(cls)