2.5
Added support for icons in search menu. It already displays icons for saved materials etc. from old files. Have to add previewrenders for this still.
This commit is contained in:
@@ -454,7 +454,7 @@ typedef void (*uiButSearchFunc)(const struct bContext *C, void *arg, char *str,
|
||||
typedef void (*uiBlockHandleFunc)(struct bContext *C, void *arg, int event);
|
||||
|
||||
/* use inside searchfunc to add items */
|
||||
int uiSearchItemAdd(uiSearchItems *items, const char *name, void *poin);
|
||||
int uiSearchItemAdd(uiSearchItems *items, const char *name, void *poin, int iconid);
|
||||
/* bfunc gets search item *poin as arg2, or if NULL the old string */
|
||||
void uiButSetSearchFunc (uiBut *but, uiButSearchFunc sfunc, void *arg1, uiButHandleFunc bfunc);
|
||||
/* height in pixels, it's using hardcoded values still */
|
||||
|
||||
Reference in New Issue
Block a user