UI:
* Template slots are no longer specified per item, but are a state now, set with uiTemplateSlot. * Some renaming of Layout functions for consistency. * Fix for roundbox in stack template, now is always behind the other buttons. * Improved python API for layout: http://www.pasteall.org/5008/python
This commit is contained in:
@@ -300,7 +300,7 @@ int uiDefAutoButsRNA(const bContext *C, uiBlock *block, PointerRNA *ptr)
|
||||
layout= uiLayoutBegin(UI_LAYOUT_VERTICAL, x, y, DEF_BUT_WIDTH*2, 0);
|
||||
|
||||
uiTemplateColumn(layout);
|
||||
uiItemLabel(layout, UI_TSLOT_COLUMN_1, (char*)RNA_struct_ui_name(ptr), 0);
|
||||
uiItemL(layout, (char*)RNA_struct_ui_name(ptr), 0);
|
||||
|
||||
iterprop= RNA_struct_iterator_property(ptr);
|
||||
RNA_property_collection_begin(ptr, iterprop, &iter);
|
||||
@@ -314,8 +314,10 @@ int uiDefAutoButsRNA(const bContext *C, uiBlock *block, PointerRNA *ptr)
|
||||
uiTemplateColumn(layout);
|
||||
|
||||
name= (char*)RNA_property_ui_name(ptr, prop);
|
||||
uiItemLabel(layout, UI_TSLOT_COLUMN_1, name, 0);
|
||||
uiItemR(layout, UI_TSLOT_COLUMN_2, "", 0, ptr, (char*)RNA_property_identifier(ptr, prop));
|
||||
uiTemplateSlot(layout, UI_TSLOT_COLUMN_1);
|
||||
uiItemL(layout, name, 0);
|
||||
uiTemplateSlot(layout, UI_TSLOT_COLUMN_2);
|
||||
uiItemR(layout, "", 0, ptr, (char*)RNA_property_identifier(ptr, prop));
|
||||
}
|
||||
|
||||
RNA_property_collection_end(&iter);
|
||||
|
||||
Reference in New Issue
Block a user