blob: 521ef04317617b0edc007fa3eb7e3363fc283b72 (
plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/*
* PARSEC HEADER: m_main.h
*/
#ifndef _M_MAIN_H_
#define _M_MAIN_H_
// menu mouse states
enum {
MOUSE_OVER_NOTHING = 0x0000,
MOUSE_OVER_ENTER_SIMUL = 0x0100,
MOUSE_OVER_CURUP_SIMUL = 0x0200,
MOUSE_OVER_CURDN_SIMUL = 0x0400,
MOUSE_OVER_CURLF_SIMUL = 0x0800,
MOUSE_OVER_CURRT_SIMUL = 0x1000,
MOUSE_OVER_BUTTON = 0x0001 | MOUSE_OVER_ENTER_SIMUL,
MOUSE_OVER_OPTION = 0x0002 | MOUSE_OVER_ENTER_SIMUL,
MOUSE_OVER_UPARROW = 0x0003 | MOUSE_OVER_CURUP_SIMUL,
MOUSE_OVER_DOWNARROW = 0x0004 | MOUSE_OVER_CURDN_SIMUL,
MOUSE_OVER_LEFTARROW = 0x0005 | MOUSE_OVER_CURLF_SIMUL,
MOUSE_OVER_RIGHTARROW = 0x0006 | MOUSE_OVER_CURRT_SIMUL,
MOUSE_OVER_SHIP = 0x0007 | MOUSE_OVER_ENTER_SIMUL
};
// metrics of list window
struct list_window_metrics_s {
int valid;
int frame_l;
int frame_r;
int frame_t;
int frame_b;
int chwidth;
int chheight;
int text_x;
int text_y;
int maxcontwidth;
int maxcontheight;
};
// external functions
void DrawFloatingMenu();
void FloatingMenuKeyHandler();
void MenuNotifyConnect();
void MenuNotifyDisconnect();
void ActivateFloatingMenu( int statuswin );
void SlideInFloatingMenu();
void SlideOutFloatingMenu();
void MoveInFloatingMenu();
void MoveOutFloatingMenu();
void HideFloatingMenu();
void ExitOptionsMenu();
// externally callable functions for automation -------------------------------
//
void MENU_FloatingMenuEnterGame();
// external variables
extern int m_sintab[];
extern int m_sintab_size;
extern int m_sintab_ampl;
extern int disable_join_game;
#endif // _M_MAIN_H_
|