1 //
2 // WL_MENU.H
3 //
4 
5 #ifndef __WL_MENU_H__
6 #define __WL_MENU_H__
7 
8 #include "id_in.h"
9 
10 extern int BORDCOLOR, BORD2COLOR, BORD3COLOR, BKGDCOLOR, STRIPE,
11 	MENUWIN_BACKGROUND, MENUWIN_TOPBORDER, MENUWIN_BOTBORDER,
12 	MENUWINHGLT_BACKGROUND, MENUWINHGLT_TOPBORDER, MENUWINHGLT_BOTBORDER;
13 void MenuFadeOut();
14 void MenuFadeIn();
15 
16 #define SENSITIVE       60
17 #define CENTERX         ((int) screenWidth / 2)
18 #define CENTERY         ((int) screenHeight / 2)
19 
20 #define MENU_X  76
21 #define MENU_Y  55
22 #define MENU_W  178
23 
24 #define SM_X    48
25 #define SM_W    250
26 
27 #define SM_Y1   20
28 #define SM_H1   4*13-7
29 #define SM_Y2   SM_Y1+5*13
30 #define SM_H2   4*13-7
31 #define SM_Y3   SM_Y2+5*13
32 #define SM_H3   3*13-7
33 
34 #define CTL_X   24
35 #define CTL_Y   60
36 #define CTL_W   284
37 #define CTL_H   75
38 
39 #define NM_X    50
40 #define NM_Y    100
41 #define NM_W    225
42 #define NM_H    13*4+15
43 
44 #define NE_X    10
45 #define NE_Y    23
46 #define NE_W    320-NE_X*2
47 #define NE_H    200-NE_Y*2
48 
49 #define CST_X           20
50 #define CST_Y           48
51 #define CST_START       60
52 #define CST_SPC 60
53 
54 
55 //
56 // FUNCTION PROTOTYPES
57 //
58 
59 void CreateMenus();
60 
61 void US_ControlPanel(ScanCode);
62 
63 void SetupControlPanel(void);
64 void CleanupControlPanel(void);
65 
66 void ClearMScreen(void);
67 void DrawWindow(int x,int y,int w,int h,int wcolor, int color1=BORD2COLOR, int color2=BORD3COLOR);
68 void DrawOutline(int x,int y,int w,int h,int color1,int color2);
69 void WaitKeyUp(void);
70 void ReadAnyControl(ControlInfo *ci);
71 void TicDelay(int count);
72 int StartCPMusic(const char* song);
73 bool Confirm(const char *string);
74 void Message(const char *string);
75 void CheckPause(void);
76 void ShootSnd(void);
77 void CheckSecretMissions(void);
78 void ShowMenu(class Menu &menu);
79 
80 void DrawStripes(int y);
81 
82 void DrawLSAction(int which);
83 
84 void DrawNewGameDiff(int w);
85 void FixupCustom(int w);
86 
87 int CP_ExitOptions(int);
88 int  CP_EndGame(int);
89 int  CP_CheckQuick(ScanCode scancode);
90 int CustomControls(int);
91 
92 enum {MOUSE,JOYSTICK,KEYBOARDBTNS,KEYBOARDMOVE};        // FOR INPUT TYPES
93 
94 int GetYorN(int x,int y,int pic);
95 
96 #endif
97