00001 #ifndef __module_buttons_h__ 00002 #define __module_buttons_h__ 00003 00004 void init_modules(void); /* KBR 10/14/2002 Missing prototype */ 00005 void init_module_buttons (void); 00006 00007 // screen.c: void draw_select_buttons (void); 00008 void draw_module_buttons (void); 00009 00010 // geometry.c: void draw_select_button_graphic (int button, char *graphic) 00011 void draw_module (int button, char * graphic); 00012 00013 // screen.c: void call_select_change_up (int button) 00014 void activate_module (int module); 00015 00016 // mouse.c: void do_mouse_select_buttons (int rawx, int rawy, int mbutton) 00017 void module_buttons_handler (int x, int y, int mbutton); 00018 00019 // mouse.c: void do_select_button (int button, int mbutton); 00020 void select_module (int module, int mbutton); 00021 00022 // mouse.c: void highlight_select_button (int button); 00023 void highlight_module_button (int module); 00024 00025 // mouse.c: void unhighlight_select_button (int button); 00026 void unhighlight_module_button (int button); 00027 00028 // mouse.c: draw_module_cost (int grp); 00029 void draw_selected_module_cost (void); 00030 00031 // screen.c: void draw_select_buttons (void); 00032 void draw_modules (void); 00033 00034 // screen.c: void update_select_buttons (void); 00035 void update_avail_modules (int popup); 00036 00037 // mouse.c: int inv_sbut (int button); 00038 int inv_sbut (int module); 00039 00040 void set_selected_module (int type); 00041 00042 00043 00044 #define NUMOF_MODULES 32 00045 // #define NUMOF_SELECT_BUTTONS_DOWN 16 00046 00047 extern int sbut[NUMOF_MODULES]; 00048 00049 extern int module_type[NUMOF_MODULES]; 00050 00051 extern int selected_module; 00052 extern int old_selected_module; 00053 extern int selected_module_group; 00054 extern int selected_module_type; 00055 extern int selected_module_cost; 00056 00057 /*extern char *module_graphic[NUMOF_MODULES]; 00058 extern int module_tflag[NUMOF_MODULES]; 00059 extern char module_help[NUMOF_MODULES][20]; */ 00060 extern int module_help_flag[NUMOF_MODULES]; 00061 00062 00063 #endif
1.3.9.1