|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: menu.c,v 1.38 2004/02/02 23:30:34 patty21 Exp $
|
|
|
|
|
/* $Id: menu.c,v 1.39 2004/02/05 22:59:04 stpohle Exp $
|
|
|
|
|
* Menuhandling */
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
@ -487,3 +487,34 @@ menu_dir_select (char *title, char *path, signed char dirflags) {
|
|
|
|
|
strncpy (menu_dir_name, selfile->text, LEN_PATHFILENAME);
|
|
|
|
|
return menu_dir_name;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* display a message on the screen and wait untill ESC is pressed */
|
|
|
|
|
void menu_displaymessage (char *title, char *line1, char *line2, char *line3, char *line4) {
|
|
|
|
|
menu_new (title, 500, 150);
|
|
|
|
|
if (line1 != NULL) menu_create_label (line1, -1, 55, 0);
|
|
|
|
|
if (line2 != NULL) menu_create_label (line2, -1, 75, 0);
|
|
|
|
|
if (line3 != NULL) menu_create_label (line3, -1, 95, 0);
|
|
|
|
|
if (line4 != NULL) menu_create_label (line4, -1, 115, 0);
|
|
|
|
|
menu_loop ();
|
|
|
|
|
menu_delete ();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* display a text on the screen and return */
|
|
|
|
|
void menu_displaytext (char *title, char *line1, char *line2, char *line3, char *line4) {
|
|
|
|
|
menu_new (title, 500, 150);
|
|
|
|
|
if (line1 != NULL) menu_create_label (line1, -1, 55, 0);
|
|
|
|
|
if (line2 != NULL) menu_create_label (line2, -1, 75, 0);
|
|
|
|
|
if (line3 != NULL) menu_create_label (line3, -1, 95, 0);
|
|
|
|
|
if (line4 != NULL) menu_create_label (line4, -1, 115, 0);
|
|
|
|
|
menu_looprunning = 1;
|
|
|
|
|
menu_draw ();
|
|
|
|
|
gfx_blitdraw ();
|
|
|
|
|
SDL_FreeSurface (menu.oldscreen);
|
|
|
|
|
menu.oldscreen = NULL;
|
|
|
|
|
menuitems[0].next = NULL;
|
|
|
|
|
menu.items = NULL;
|
|
|
|
|
menu_looprunning = 0;
|
|
|
|
|
gfx_blitdraw ();
|
|
|
|
|
};
|
|
|
|
|