typedef struct { int xpos; // X position of this item in the menu int ypos; // Y position of this item in the menu const char *text; // Displayed name for this menu item char itemtype; // Whether static text, function caller, submenu, or variable setting int (*proc)(void); // Function to call when item is selected struct menu_t *target; // Submenu to go to when item is submenu type void *itemvar; // Value that is adjusted for this menu item unsigned int boolbit; // Bit to adjust for *itemvar when item is boolean type } menu_t; menu_t menulist_home[] = { { (GAMEWIDTH-(16*11))/2, (16*17), "RESUME GAME", MI_CALLFUNC, menufunc_unpause, NULL, NULL, 0}, { (GAMEWIDTH-(16*7))/2, (16*18), "OPTIONS", MI_SUBMENU, NULL, menulist_options, NULL, 0}, { (GAMEWIDTH-(16*4))/2, (16*19.5), "QUIT", MI_CALLFUNC, menufunc_quit, NULL, NULL, 0}, { 0, 0, NULL, MI_STATIC, NULL, NULL, NULL, 0} };