Blender Git Commit Log

Git Commits -> Revision 4f1e387

Revision 4f1e387 by Bastien Montagne (master)
February 10, 2015, 23:07 (GMT)
UI: add optional tip callback to uiBut, and use it for per-item tooltips in UIList.

When defined, uiBut->tip_func is called when button's tip is generated. This allows
for advanced, dynamic generation of tooltips.

For now, only used by UIList, which can now optionaly use a given string property
of each item for its tooltip.

Thanks to Campbell for the reviews!

Commit Details:

Full Hash: 4f1e3875884506c017e03469658e9e7dadeeb500
Parent Commit: d18993d
Lines Changed: +62, -10

8 Modified Paths:

/source/blender/editors/include/UI_interface.h (+7, -1) (Diff)
/source/blender/editors/interface/interface.c (+18, -1) (Diff)
/source/blender/editors/interface/interface_intern.h (+5, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+25, -2) (Diff)
/source/blender/editors/space_node/drawnode.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_buttons.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+2, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021