1 #ifndef __module_buttons_h__
2 #define __module_buttons_h__
3 
4 void init_modules(void);  /* KBR 10/14/2002 Missing prototype */
5 void init_module_buttons (void);
6 
7 // screen.c: void draw_select_buttons (void);
8 void draw_module_buttons (void);
9 
10 // geometry.c: void draw_select_button_graphic (int button, char *graphic)
11 void draw_module (int button, char * graphic);
12 
13 // screen.c: void call_select_change_up (int button)
14 void activate_module (int module);
15 
16 // mouse.c: void do_mouse_select_buttons (int rawx, int rawy, int mbutton)
17 void module_buttons_handler (int x, int y, int mbutton);
18 
19 // mouse.c: void do_select_button (int button, int mbutton);
20 void select_module (int module, int mbutton);
21 
22 // mouse.c: void highlight_select_button (int button);
23 void highlight_module_button (int module);
24 
25 // mouse.c: void unhighlight_select_button (int button);
26 void unhighlight_module_button (int button);
27 
28 // mouse.c: draw_module_cost (int grp);
29 void draw_selected_module_cost (void);
30 
31 // screen.c: void draw_select_buttons (void);
32 void draw_modules (void);
33 
34 // screen.c: void update_select_buttons (void);
35 void update_avail_modules (int popup);
36 
37 // mouse.c: int inv_sbut (int button);
38 int inv_sbut (int module);
39 
40 void set_selected_module (int type);
41 
42 
43 
44 #define NUMOF_MODULES 32
45 // #define NUMOF_SELECT_BUTTONS_DOWN 16
46 
47 extern int sbut[NUMOF_MODULES];
48 
49 extern int module_type[NUMOF_MODULES];
50 
51 extern int selected_module;
52 extern int old_selected_module;
53 extern int selected_module_group;
54 extern int selected_module_type;
55 extern int selected_module_cost;
56 
57 /*extern char *module_graphic[NUMOF_MODULES];
58 extern int module_tflag[NUMOF_MODULES];
59 extern char module_help[NUMOF_MODULES][20]; */
60 extern int module_help_flag[NUMOF_MODULES];
61 
62 
63 #endif
64