Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_layout.c
| Show First 20 Lines • Show All 3,229 Lines • ▼ Show 20 Lines | static uiBut *uiItemL_(uiLayout *layout, const char *name, int icon) | ||||
| if (layout->redalert) { | if (layout->redalert) { | ||||
| UI_but_flag_enable(but, UI_BUT_REDALERT); | UI_but_flag_enable(but, UI_BUT_REDALERT); | ||||
| } | } | ||||
| return but; | return but; | ||||
| } | } | ||||
| void uiItemL_ex( | uiBut *uiItemL_ex( | ||||
| uiLayout *layout, const char *name, int icon, const bool highlight, const bool redalert) | uiLayout *layout, const char *name, int icon, const bool highlight, const bool redalert) | ||||
| { | { | ||||
| uiBut *but = uiItemL_(layout, name, icon); | uiBut *but = uiItemL_(layout, name, icon); | ||||
| if (highlight) { | if (highlight) { | ||||
| /* TODO: add another flag for this. */ | /* TODO: add another flag for this. */ | ||||
| UI_but_flag_enable(but, UI_SELECT_DRAW); | UI_but_flag_enable(but, UI_SELECT_DRAW); | ||||
| } | } | ||||
| if (redalert) { | if (redalert) { | ||||
| UI_but_flag_enable(but, UI_BUT_REDALERT); | UI_but_flag_enable(but, UI_BUT_REDALERT); | ||||
| } | } | ||||
| return but; | |||||
| } | } | ||||
| void uiItemL(uiLayout *layout, const char *name, int icon) | void uiItemL(uiLayout *layout, const char *name, int icon) | ||||
| { | { | ||||
| uiItemL_(layout, name, icon); | uiItemL_(layout, name, icon); | ||||
| } | } | ||||
| uiPropertySplitWrapper uiItemPropertySplitWrapperCreate(uiLayout *parent_layout) | uiPropertySplitWrapper uiItemPropertySplitWrapperCreate(uiLayout *parent_layout) | ||||
| ▲ Show 20 Lines • Show All 2,808 Lines • Show Last 20 Lines | |||||