Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_armature.py
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| pose, | pose, | ||||
| "bone_groups", | "bone_groups", | ||||
| pose.bone_groups, | pose.bone_groups, | ||||
| "active_index", | "active_index", | ||||
| rows=rows, | rows=rows, | ||||
| ) | ) | ||||
| col = row.column(align=True) | col = row.column(align=True) | ||||
| col.active = (ob.proxy is None) | |||||
| col.operator("pose.group_add", icon='ADD', text="") | col.operator("pose.group_add", icon='ADD', text="") | ||||
| col.operator("pose.group_remove", icon='REMOVE', text="") | col.operator("pose.group_remove", icon='REMOVE', text="") | ||||
| col.menu("DATA_MT_bone_group_context_menu", icon='DOWNARROW_HLT', text="") | col.menu("DATA_MT_bone_group_context_menu", icon='DOWNARROW_HLT', text="") | ||||
| if group: | if group: | ||||
| col.separator() | col.separator() | ||||
| col.operator("pose.group_move", icon='TRIA_UP', text="").direction = 'UP' | col.operator("pose.group_move", icon='TRIA_UP', text="").direction = 'UP' | ||||
| col.operator("pose.group_move", icon='TRIA_DOWN', text="").direction = 'DOWN' | col.operator("pose.group_move", icon='TRIA_DOWN', text="").direction = 'DOWN' | ||||
| split = layout.split() | split = layout.split() | ||||
| split.active = (ob.proxy is None) | split.active = (ob.proxy is None) | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(group, "color_set") | col.prop(group, "color_set") | ||||
| if group.color_set: | if group.color_set: | ||||
| col = split.column() | col = split.column() | ||||
| sub = col.row(align=True) | sub = col.row(align=True) | ||||
| sub.enabled = group.is_custom_color_set # only custom colors are editable | sub.enabled = group.is_custom_color_set # only custom colors are editable | ||||
| sub.prop(group.colors, "normal", text="") | sub.prop(group.colors, "normal", text="") | ||||
| sub.prop(group.colors, "select", text="") | sub.prop(group.colors, "select", text="") | ||||
| sub.prop(group.colors, "active", text="") | sub.prop(group.colors, "active", text="") | ||||
| row = layout.row() | row = layout.row() | ||||
| row.active = (ob.proxy is None) | |||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.operator("pose.group_assign", text="Assign") | sub.operator("pose.group_assign", text="Assign") | ||||
| # row.operator("pose.bone_group_remove_from", text="Remove") | # row.operator("pose.bone_group_remove_from", text="Remove") | ||||
| sub.operator("pose.group_unassign", text="Remove") | sub.operator("pose.group_unassign", text="Remove") | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.operator("pose.group_select", text="Select") | sub.operator("pose.group_select", text="Select") | ||||
| ▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines | |||||