forked from Warzone2100/warzone2100
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingameop.h
131 lines (109 loc) · 3.66 KB
/
ingameop.h
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
This file is part of Warzone 2100.
Copyright (C) 1999-2004 Eidos Interactive
Copyright (C) 2005-2012 Warzone 2100 Project
Warzone 2100 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Warzone 2100 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Warzone 2100; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/** @file
* In game options screen
*/
#ifndef __INCLUDED_SRC_INGAMEOP_H__
#define __INCLUDED_SRC_INGAMEOP_H__
// functions
extern bool intAddInGameOptions (void);
extern bool intCloseInGameOptions (bool bPutUpLoadSave, bool bResetMissionWidgets);
extern void intCloseInGameOptionsNoAnim (bool bResetMissionWidgets);
extern bool intRunInGameOptions (void);
extern void intProcessInGameOptions (UDWORD);
extern void intAddInGamePopup(void);
// status bools.
extern bool ClosingInGameOp;
extern bool InGameOpUp;
extern bool isInGamePopupUp;
// ////////////////////////////////////////////////////////////////////////////
// defines
// the screen itself.
#define INTINGAMEOP 10500
#define INTINGAMEPOPUP 77335
// position info for window.
// game options
// initial options
#define INTINGAMEOP_W 150
#define INTINGAMEOP_H 124
#define INTINGAMEOP_HS 88
#define INTINGAMEOP_X ((320-(INTINGAMEOP_W/2))+D_W)
#define INTINGAMEOP_Y ((240-(INTINGAMEOP_H/2))+D_H)
#define INTINGAMEOP2_W 350
#define INTINGAMEOP2_H 120
#define INTINGAMEOP2_X ((320-(INTINGAMEOP2_W/2))+D_W)
#define INTINGAMEOP2_Y ((240-(INTINGAMEOP2_H/2))+D_H)
// quit confirmation.
#define INTINGAMEOP3_W 150
#define INTINGAMEOP3_H 65
#define INTINGAMEOP3_X ((320-(INTINGAMEOP3_W/2))+D_W)
#define INTINGAMEOP3_Y ((240-(INTINGAMEOP3_H/2))+D_H)
#define PAUSEMESSAGE_YOFFSET (0)
#define INTINGAMEOP_PAUSEX RET_X
#define INTINGAMEOP_PAUSEY 10
#define INTINGAMEOP_PAUSEWIDTH 60
#define INTINGAMEOP_PAUSEHEIGHT 20
// button sizes.
#define INTINGAMEOP_OP_W (INTINGAMEOP_W-10)
#define INTINGAMEOP_SW_W (INTINGAMEOP2_W - 15)
#define INTINGAMEOP_OP_H 10
enum
{
INTINGAMEOP_QUIT = INTINGAMEOP + 1,
INTINGAMEOP_QUIT_CONFIRM, ///< The all important quit button
INTINGAMEOP_RESUME,
INTINGAMEOP_LOAD_MISSION,
INTINGAMEOP_LOAD_SKIRMISH,
INTINGAMEOP_SAVE_MISSION,
INTINGAMEOP_SAVE_SKIRMISH,
INTINGAMEOP_OPTIONS,
INTINGAMEOP_FXVOL,
INTINGAMEOP_FXVOL_S,
INTINGAMEOP_3DFXVOL,
INTINGAMEOP_3DFXVOL_S,
INTINGAMEOP_CDVOL,
INTINGAMEOP_CDVOL_S,
INTINGAMEOP_CONTROL,
INTINGAMEOP_CONTROL_BT,
INTINGAMEOP_VIBRATION,
INTINGAMEOP_VIBRATION_BT,
INTINGAMEOP_PAUSELABEL, ///< The paused message
INTINGAMEOP_SCREENSHAKE,
INTINGAMEOP_SCREENSHAKE_BT,
INTINGAMEOP_CENTRESCREEN,
INTINGAMEOP_REPLAY,
INTINGAMEOP_CURSOR_S,
INTINGAMEOP_SUBTITLES,
INTINGAMEOP_SUBTITLES_BT,
INTINGAMEOP_TUI_TARGET_ORIGIN_SW, ///< Switch
INTINGAMEOP_POPUP_QUIT,
INTINGAMEOP_POPUP_MSG1,
INTINGAMEOP_POPUP_MSG2,
INTINGAMEOP_POPUP_MSG3
};
// positions within option boxes.
#define INTINGAMEOP_1_X 5
#define INTINGAMEOP_2_X 10
#define INTINGAMEOP_MID 160
#define INTINGAMEOP_1_Y 20
#define INTINGAMEOP_2_Y 40
#define INTINGAMEOP_3_Y 60
#define INTINGAMEOP_4_Y 80
#define INTINGAMEOP_5_Y 100
#define INTINGAMEOP_6_Y 120
#define OPALIGN (WBUT_PLAIN | WBUT_TXTCENTRE)
#endif // __INCLUDED_SRC_INGAMEOP_H__