[go: up one dir, main page]

File: module_buttons.h

package info (click to toggle)
lincity 1.13.1-11
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 7,000 kB
  • ctags: 4,879
  • sloc: ansic: 32,743; sh: 8,578; makefile: 578; perl: 445; yacc: 316; sed: 16
file content (63 lines) | stat: -rw-r--r-- 1,729 bytes parent folder | download | duplicates (9)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef __module_buttons_h__
#define __module_buttons_h__

void init_modules(void);  /* KBR 10/14/2002 Missing prototype */
void init_module_buttons (void);

// screen.c: void draw_select_buttons (void);
void draw_module_buttons (void);

// geometry.c: void draw_select_button_graphic (int button, char *graphic)
void draw_module (int button, char * graphic);

// screen.c: void call_select_change_up (int button)
void activate_module (int module);

// mouse.c: void do_mouse_select_buttons (int rawx, int rawy, int mbutton)
void module_buttons_handler (int x, int y, int mbutton);

// mouse.c: void do_select_button (int button, int mbutton);
void select_module (int module, int mbutton);

// mouse.c: void highlight_select_button (int button);
void highlight_module_button (int module);

// mouse.c: void unhighlight_select_button (int button);
void unhighlight_module_button (int button);

// mouse.c: draw_module_cost (int grp);
void draw_selected_module_cost (void);

// screen.c: void draw_select_buttons (void);
void draw_modules (void);

// screen.c: void update_select_buttons (void);
void update_avail_modules (int popup);

// mouse.c: int inv_sbut (int button);
int inv_sbut (int module);

void set_selected_module (int type);



#define NUMOF_MODULES 32
// #define NUMOF_SELECT_BUTTONS_DOWN 16

extern int sbut[NUMOF_MODULES];

extern int module_type[NUMOF_MODULES];

extern int selected_module;	
extern int old_selected_module;
extern int selected_module_group;
extern int selected_module_type;
extern int selected_module_cost;

/*extern char *module_graphic[NUMOF_MODULES];
extern int module_tflag[NUMOF_MODULES];
extern char module_help[NUMOF_MODULES][20]; */
extern int module_help_flag[NUMOF_MODULES]; 


#endif