Mercurial > MadButterfly
comparison examples/menu/main.c @ 320:6e164a9dd46c
Fix the Makefile to generate files correctly.
The filebrowser is not working yet.
author | wycc |
---|---|
date | Thu, 05 Mar 2009 08:19:43 +0800 |
parents | 9e1d72eca57b |
children | 4453ea44a83d |
comparison
equal
deleted
inserted
replaced
319:1633b5aadfc3 | 320:6e164a9dd46c |
---|---|
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <mb.h> | 14 #include <mb.h> |
15 #include <string.h> | 15 #include <string.h> |
16 #include "menu.h" | 16 #include "menu.h" |
17 #include "mbapp.h" | 17 #include "mbapp.h" |
18 #include "animated_menu.h" | |
18 | 19 |
19 | 20 |
20 typedef struct _mb_animated_menu { | |
21 char **titles; | |
22 int *menus_y; | |
23 int *items; | |
24 int top; | |
25 int cur; | |
26 int max; | |
27 int ready; | |
28 int speed; | |
29 MBApp *app; | |
30 mb_sprite_t *sprite; | |
31 mb_obj_t **objects; | |
32 mb_obj_t *lightbar; | |
33 void (*callback)(struct _mb_animated_menu *m, int sel); | |
34 } mb_animated_menu_t; | |
35 | 21 |
36 char *menus[] = { | 22 char *menus[] = { |
37 "Item 1", | 23 "Item 1", |
38 "Item 2", | 24 "Item 2", |
39 "Item 3", | 25 "Item 3", |