Data Structures | |
struct | UL_MSGBOX_BUTTON |
Functions | |
int | ulMessageBoxEx (const char *text, const char *title, int nbButtons, UL_MSGBOX_BUTTON *buttons, void(*fnRender)(), u32 reserved) |
int ulMessageBoxEx | ( | const char * | text, | |
const char * | title, | |||
int | nbButtons, | |||
UL_MSGBOX_BUTTON * | buttons, | |||
void(*)() | fnRender, | |||
u32 | reserved | |||
) |
Displays a message box (extended version).
text | Main text to be displayed. This can be a big string with line endings (\n). | |
title | Title, displayed on top of the window. | |
nbButtons | Number of buttons in the buttons pointer. | |
buttons | Table of buttons. The number of buttons available in this table must be given by the nbButton parameter. | |
fnRender | Pointer to an own render function. Needed to draw your own background because on the DS the display contents can't be kept from a frame to another, it must be entirely erased once per frame. Make sure your function will not draw an important number of polygons, else it will leave no room for the message box (1 quad per character, 1 tri for each line, etc.). | |
reserved | Set to 0. |