All pastes #957232 Raw Edit

Unnamed

public c v1 · immutable
#957232 ·published 2008-03-25 21:11 UTC
rendered paste body
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_options[] ={	{ (GAMEWIDTH-(16*10))/2, (16*8),  "DEBUG MODE",        MI_BOOLEAN,  NULL, NULL, NULL, 0},	{ (GAMEWIDTH-(16*16))/2, (16*9),  "DEBUG WORLD MODE",  MI_BOOLEAN,  NULL, NULL, NULL, 0},	{ (GAMEWIDTH-(16*6))/2,  (16*10), "FOOBAR",            MI_VARIABLE, NULL, NULL, NULL, 0},	{ (GAMEWIDTH-(16*4))/2,  (16*11), "BACK",              MI_CALLFUNC, NULL, NULL, NULL, 0},	{ 0,                     0,       NULL,                MI_STATIC,   NULL, NULL, NULL, 0}};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}};