19void dialogue_msg( const
char *caption, const
char *fmt, ... );
23void dialogue_msgImg( const
char *caption, const
char *img, const
char *fmt,
26 int width,
int height );
34char *
dialogue_input( const
char *title,
int min,
int max, const
char *fmt,
50int dialogue_list( const
char *title,
char **items,
int nitems, const
char *fmt,
56 const
char *title,
char **items,
int nitems,
int extrawidth,
int minheight,
57 void ( *add_widgets )(
unsigned int wid,
int x,
int y,
int w,
int h ),
58 void ( *select_call )(
unsigned int wid, const
char *wgtname,
int x,
int y,
60 const
char *fmt, ... );
62 const
char *title,
char **items,
int nitems,
int extrawidth,
int minheight,
63 void ( *add_widgets )(
unsigned int wid,
int x,
int y,
int w,
int h ),
64 void ( *select_call )(
unsigned int wid, const
char *wgtname,
int x,
int y,
72 const
char *wdwname, const
char *caption,
int width,
int height,
73 int ( *update )(
double dt,
void *data ),
74 void ( *render )(
double x,
double y,
double w,
double h,
void *data ),
75 int ( *event )(
unsigned int wid, SDL_Event *event,
void *data ),
void *data,
76 int dynamic,
void ( *freefunc )(
void *data ) );
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.
void dialogue_custom(const char *wdwname, 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 dynamic, void(*freefunc)(void *data))
Opens a custom dialogue window.
int dialogue_customFullscreen(unsigned int wid, int enable)
Converts a custom dialogue to fullscreen.
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...
int dialogue_customResize(unsigned int wid, int width, int height)
Resizes a custom dialogue.
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.
void dialogue_alertRaw(const char *msg)
Displays an alert popup with only an ok button and a message.
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.
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.