Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface.cc
| Show First 20 Lines • Show All 6,446 Lines • ▼ Show 20 Lines | uiBut *uiDefSearchButO_ptr(uiBlock *block, | ||||
| return but; | return but; | ||||
| } | } | ||||
| void UI_but_hint_drawstr_set(uiBut *but, const char *string) | void UI_but_hint_drawstr_set(uiBut *but, const char *string) | ||||
| { | { | ||||
| ui_but_add_shortcut(but, string, false); | ui_but_add_shortcut(but, string, false); | ||||
| } | } | ||||
| void UI_but_icon_indicator_number_set(uiBut *but, const int indicator_number) | |||||
| { | |||||
| UI_icon_text_overlay_init_from_count(&but->icon_overlay_text, indicator_number); | |||||
| } | |||||
| void UI_but_node_link_set(uiBut *but, bNodeSocket *socket, const float draw_color[4]) | void UI_but_node_link_set(uiBut *but, bNodeSocket *socket, const float draw_color[4]) | ||||
| { | { | ||||
| but->flag |= UI_BUT_NODE_LINK; | but->flag |= UI_BUT_NODE_LINK; | ||||
| but->custom_data = socket; | but->custom_data = socket; | ||||
| rgba_float_to_uchar(but->col, draw_color); | rgba_float_to_uchar(but->col, draw_color); | ||||
| } | } | ||||
| void UI_but_number_step_size_set(uiBut *but, float step_size) | void UI_but_number_step_size_set(uiBut *but, float step_size) | ||||
| ▲ Show 20 Lines • Show All 342 Lines • Show Last 20 Lines | |||||