mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-23 12:02:39 -05:00
Adjust Wormlet to use the new macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13010 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8f872e8ac5
commit
f4c6560ea7
1 changed files with 6 additions and 17 deletions
|
|
@ -2525,27 +2525,16 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
{ "Out of Control", -1 }
|
{ "Out of Control", -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct menu_item items[] = {
|
MENUITEM_STRINGLIST(menu, "Wormlet Menu", NULL, "Play Wormlet!",
|
||||||
{ "Play Wormlet!", NULL },
|
"Number of Worms", "Number of Players", "Control Style",
|
||||||
{ "Number of Worms", NULL },
|
"Worm Growth Per Food","Worm Speed","Arghs Per Food",
|
||||||
{ "Number of Players", NULL },
|
"Argh Size","Food Size","Revert to Default Settings",
|
||||||
{ "Control Style", NULL },
|
"Quit");
|
||||||
{ "Worm Growth Per Food", NULL },
|
|
||||||
{ "Worm Speed", NULL },
|
|
||||||
{ "Arghs Per Food", NULL },
|
|
||||||
{ "Argh Size", NULL },
|
|
||||||
{ "Food Size", NULL },
|
|
||||||
{ "Revert to Default Settings", NULL },
|
|
||||||
{ "Quit", NULL }
|
|
||||||
};
|
|
||||||
|
|
||||||
m = rb->menu_init(items, sizeof(items) / sizeof(*items),
|
|
||||||
NULL, NULL, NULL, NULL);
|
|
||||||
|
|
||||||
rb->button_clear_queue();
|
rb->button_clear_queue();
|
||||||
|
|
||||||
while (!menu_quit) {
|
while (!menu_quit) {
|
||||||
result = rb->menu_show(m);
|
result = rb->do_menu(&menu, &result);
|
||||||
|
|
||||||
switch(result)
|
switch(result)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue