UI: Larger Alert Icons
Adding a set of larger icons for use in informational dialogs. Differential Revision: https://developer.blender.org/D6859 Reviewed by Campbell Barton
This commit is contained in:
@@ -48,6 +48,9 @@ extern char datatoc_blender_icons32_png[];
|
||||
extern int datatoc_prvicons_png_size;
|
||||
extern char datatoc_prvicons_png[];
|
||||
|
||||
extern int datatoc_alert_icons_png_size;
|
||||
extern char datatoc_alert_icons_png[];
|
||||
|
||||
extern int datatoc_splash_png_size;
|
||||
extern char datatoc_splash_png[];
|
||||
|
||||
|
||||
@@ -1124,7 +1124,10 @@ uiBut *uiDefIconButO_ptr(uiBlock *block,
|
||||
short width,
|
||||
short height,
|
||||
const char *tip);
|
||||
|
||||
uiBut *uiDefButImage(
|
||||
uiBlock *block, void *imbuf, int x, int y, short width, short height, const uchar color[4]);
|
||||
uiBut *uiDefButAlert(
|
||||
uiBlock *block, int icon, int x, int y, short width, short height);
|
||||
uiBut *uiDefIconTextBut(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
||||
@@ -52,6 +52,17 @@ typedef struct IconFile {
|
||||
|
||||
#define PREVIEW_DEFAULT_HEIGHT 128
|
||||
|
||||
typedef enum eAlertIcon {
|
||||
ALERT_ICON_WARNING = 0,
|
||||
ALERT_ICON_QUESTION = 1,
|
||||
ALERT_ICON_ERROR = 2,
|
||||
ALERT_ICON_INFO = 3,
|
||||
ALERT_ICON_BLENDER = 4,
|
||||
ALERT_ICON_MAX,
|
||||
} eAlertIcon;
|
||||
|
||||
struct ImBuf *UI_alert_image(eAlertIcon icon);
|
||||
|
||||
/*
|
||||
* Resizable Icons for Blender
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user