-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathMENU.H
More file actions
33 lines (29 loc) · 771 Bytes
/
MENU.H
File metadata and controls
33 lines (29 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// MENU.H
//
//
// Structures for menu
//
typedef struct item_s
{
int id; // enum value for id (i.e., MODSKILL1)
int x; // x-coord of item
int y;
int w; // width of item (for inverse bar)
int left; // item # if LEFT ARROW pressed (-1 = none)
int right; // item # if RIGHT ARROW pressed (-1 = none)
int up; // item # if UP ARROW pressed (0 = none)
int down; // item # if DOWN ARROW pressed (0 = none)
} item_t;
typedef struct
{
item_t *items; // * to items
int startitem; // item to start on
int maxitems; // # of items in menu
char invert; // attribute for inversion
} menu_t;
void SetupMenu(menu_t *menu);
int GetMenuInput(void);
void SetMark(item_t *item,int value);
void Sound(int freq, int dly);
extern short menukey;