14PRINTF_FORMAT( 2, 3 )
void dialogue_msg( const
char *caption, const
char *fmt, ... );
17PRINTF_FORMAT( 3, 4 )
void dialogue_msgImg( const
char *caption, const
char *img, const
char *fmt, ... );
18void dialogue_msgImgRaw( const
char *caption, const
char *msg, const
char *img,
int width,
int height );
20PRINTF_FORMAT( 2, 3 )
int dialogue_YesNo( const
char *caption, const
char *fmt, ... );
23PRINTF_FORMAT( 4, 5 )
char*
dialogue_input( const
char* title,
int min,
int max, const
char *fmt, ... );
36PRINTF_FORMAT( 4, 5 )
int dialogue_list( const
char* title,
char **items,
int nitems, const
char *fmt, ... );
37int dialogue_listRaw( const
char* title,
char **items,
int nitems, const
char *msg );
38PRINTF_FORMAT( 8, 9 )
int dialogue_listPanel ( const
char* title,
char **items,
int nitems,
int extrawidth,
39 int minheight,
void (*add_widgets) (
unsigned int wid,
int x,
int y,
int w,
int h),
40 void (*select_call) (
unsigned int wid, const
char* wgtname,
int x,
int y,
int w,
int h),
41 const
char *fmt, ... );
43 int minheight,
void (*add_widgets) (
unsigned int wid,
int x,
int y,
int w,
int h),
44 void (*select_call) (
unsigned int wid, const
char* wgtname,
int x,
int y,
int w,
int h),
51 int (*update) (
double dt,
void* data),
52 void (*render) (
double x,
double y,
double w,
double h,
void* data),
53 int (*event) (
unsigned int wid, SDL_Event* event,
void* data),
54 void *data,
int autofree );
char * dialogue_runChoice(void)
Run the dialog and return the clicked string.
char * dialogue_inputRaw(const char *title, int min, int max, const char *msg)
Creates a dialogue that allows the player to write a message.
void dialogue_alert(const char *fmt,...)
Displays an alert popup with only an ok button and a message.
int dialogue_listPanelRaw(const char *title, char **items, int nitems, int extrawidth, int minheight, void(*add_widgets)(unsigned int wid, int x, int y, int w, int h), void(*select_call)(unsigned int wid, const char *wgtname, int x, int y, int w, int h), const char *msg)
Creates a list dialogue with OK and Cancel buttons, with a fixed message, as well as a small extra ar...
char * dialogue_input(const char *title, int min, int max, const char *fmt,...)
Creates a dialogue that allows the player to write a message.
int dialogue_listRaw(const char *title, char **items, int nitems, const char *msg)
Creates a list dialogue with OK and Cancel button.
int dialogue_YesNoRaw(const char *caption, const char *msg)
Runs a dialogue with both yes and no options.
int dialogue_listPanel(const char *title, char **items, int nitems, int extrawidth, int minheight, void(*add_widgets)(unsigned int wid, int x, int y, int w, int h), void(*select_call)(unsigned int wid, const char *wgtname, int x, int y, int w, int h), const char *fmt,...)
Creates a list dialogue with OK and Cancel buttons, with a fixed message, as well as a small extra ar...
void dialogue_custom(const char *caption, int width, int height, int(*update)(double dt, void *data), void(*render)(double x, double y, double w, double h, void *data), int(*event)(unsigned int wid, SDL_Event *event, void *data), void *data, int autofree)
Opens a custom dialogue window.
void dialogue_msg(const char *caption, const char *fmt,...)
Opens a dialogue window with an ok button and a message.
int dialogue_list(const char *title, char **items, int nitems, const char *fmt,...)
Creates a list dialogue with OK and Cancel button with a fixed message.
void dialogue_addChoice(const char *caption, const char *msg, const char *opt)
Add a choice to the dialog.
int dialogue_customResize(int width, int height)
Resizes a custom dialogue.
void dialogue_msgImgRaw(const char *caption, const char *msg, const char *img, int width, int height)
Opens a dialogue window with an ok button, a fixed message and an image.
void dialogue_makeChoice(const char *caption, const char *msg, int opts)
Create the choice dialog. Need to add choices with below method.
void dialogue_msgRaw(const char *caption, const char *msg)
Opens a dialogue window with an ok button and a fixed message.
int dialogue_isOpen(void)
Checks to see if a dialogue is open.
int dialogue_YesNo(const char *caption, const char *fmt,...)
Runs a dialogue with both yes and no options.
int dialogue_customFullscreen(int enable)
Converts a custom dialogue to fullscreen.
void dialogue_msgImg(const char *caption, const char *img, const char *fmt,...)
Opens a dialogue window with an ok button, a message and an image.