Imported Hogers menu.cpp (the rest is not active yet)

This commit is contained in:
simon.kagstrom 2009-04-18 05:54:33 +00:00
parent a45b99e86c
commit 65088e89f9
5 changed files with 710 additions and 241 deletions

BIN
C64.ttf Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -28,14 +28,22 @@ extern "C" {
#define KEY_ESCAPE 32
#define KEY_PAGEDOWN 64
#define KEY_PAGEUP 128
#define KEY_HELP 256
void menu_print_font(SDL_Surface *screen, int r, int g, int b,
int x, int y, const char *msg);
void menu_print_font(SDL_Surface *screen, int r, int g, int b, int x, int y, const char *msg);
void menu_print_font64(SDL_Surface *screen, int r, int g, int b, int x, int y, const char *msg);
int menu_select(const char **pp_msgs, int *p_submenus);
int menu_select_sized(char *title, SDL_Rect *rc, const char **msgs, int *submenus, int sel);
uint32_t menu_wait_key_press(void);
extern bool msgKill(SDL_Rect *rc);
extern int msgInfo(char *text, int duration, SDL_Rect *rc);
extern bool msgYesNo(char *text, bool def,int x, int y);
void menu_init();
#if defined(__cplusplus)

8
Src/menutexts.h Normal file
View File

@ -0,0 +1,8 @@
extern const char *welcome[];
extern const char *new_main_menu_messages[];
extern const char *new_options_menu_messages[];
extern const char *new_advanced_options_menu_messages[];
extern const char *new_help_menu_messages[];
extern const char *main_menu_messages[];
extern const char *layout_messages[];
extern const char *other_options_messages[];

View File

@ -1,3 +1,6 @@
#ifndef __slist_h
#define __slist_h
struct _S_LIST
{
int Elements;
@ -16,3 +19,4 @@ extern int S_AddToList(S_List *List, char *String);
extern void S_DestroyList(S_List *List);
/************************************************************/
#endif /* __slist_h */