Todo item:

Option menus (like Mapping options in texture) now show a tooltip on
the button itself, explaining the selected option.
This commit is contained in:
Ton Roosendaal
2011-02-19 17:18:38 +00:00
parent e3cc8f00cc
commit 9d81d5f7ac

View File

@@ -2581,8 +2581,11 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s
else
BLI_dynstr_appendf(dynstr, "|%s %%x%d", item[i].name, item[i].value);
if(value == item[i].value)
if(value == item[i].value) {
icon= item[i].icon;
if(!tip)
tip= item[i].description;
}
}
str= BLI_dynstr_get_cstring(dynstr);
BLI_dynstr_free(dynstr);