diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/wormlet.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index dce4931de6..3147134bca 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c | |||
@@ -2525,27 +2525,16 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
2525 | { "Out of Control", -1 } | 2525 | { "Out of Control", -1 } |
2526 | }; | 2526 | }; |
2527 | 2527 | ||
2528 | static const struct menu_item items[] = { | 2528 | MENUITEM_STRINGLIST(menu, "Wormlet Menu", NULL, "Play Wormlet!", |
2529 | { "Play Wormlet!", NULL }, | 2529 | "Number of Worms", "Number of Players", "Control Style", |
2530 | { "Number of Worms", NULL }, | 2530 | "Worm Growth Per Food","Worm Speed","Arghs Per Food", |
2531 | { "Number of Players", NULL }, | 2531 | "Argh Size","Food Size","Revert to Default Settings", |
2532 | { "Control Style", NULL }, | 2532 | "Quit"); |
2533 | { "Worm Growth Per Food", NULL }, | ||
2534 | { "Worm Speed", NULL }, | ||
2535 | { "Arghs Per Food", NULL }, | ||
2536 | { "Argh Size", NULL }, | ||
2537 | { "Food Size", NULL }, | ||
2538 | { "Revert to Default Settings", NULL }, | ||
2539 | { "Quit", NULL } | ||
2540 | }; | ||
2541 | |||
2542 | m = rb->menu_init(items, sizeof(items) / sizeof(*items), | ||
2543 | NULL, NULL, NULL, NULL); | ||
2544 | 2533 | ||
2545 | rb->button_clear_queue(); | 2534 | rb->button_clear_queue(); |
2546 | 2535 | ||
2547 | while (!menu_quit) { | 2536 | while (!menu_quit) { |
2548 | result = rb->menu_show(m); | 2537 | result = rb->do_menu(&menu, &result); |
2549 | 2538 | ||
2550 | switch(result) | 2539 | switch(result) |
2551 | { | 2540 | { |