Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_hair.py
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| class HAIR_UL_attributes(UIList): | class HAIR_UL_attributes(UIList): | ||||
| def draw_item(self, context, layout, data, attribute, icon, active_data, active_propname, index): | def draw_item(self, context, layout, data, attribute, icon, active_data, active_propname, index): | ||||
| data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type] | data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type] | ||||
| domain = attribute.bl_rna.properties['domain'].enum_items[attribute.domain] | domain = attribute.bl_rna.properties['domain'].enum_items[attribute.domain] | ||||
| split = layout.split(factor=0.5) | split = layout.split(factor=0.5) | ||||
| split.emboss = 'NONE' | |||||
| row = split.row() | row = split.row() | ||||
| row.prop(attribute, "name", text="", emboss=False) | row.prop(attribute, "name", text="") | ||||
| sub = split.split() | sub = split.split() | ||||
| sub.alignment = 'RIGHT' | sub.alignment = 'RIGHT' | ||||
| sub.active = False | sub.active = False | ||||
| sub.label(text=domain.name) | sub.label(text=domain.name) | ||||
| sub.label(text=data_type.name) | sub.label(text=data_type.name) | ||||
| class DATA_PT_hair_attributes(DataButtonsPanel, Panel): | class DATA_PT_hair_attributes(DataButtonsPanel, Panel): | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||