ScummVM API documentation
t2d_internal.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef WATCHMAKER_T2D_INTERNAL_H
23 #define WATCHMAKER_T2D_INTERNAL_H
24 
25 #include "watchmaker/types.h"
26 
27 #define T2D_MAX_WINDOWS 32
28 
29 #define T2D_MAX_BITMAPS_IN_WIN 64
30 #define T2D_MAX_TEXTS_IN_WIN 64
31 #define T2D_MAX_BUTTONS_IN_WIN 64
32 
33 #define T2D_BM_OFF (1<<31)
34 #define T2D_BM_SCROLL (1<<30)
35 #define T2D_BM2TEXT_MASK 0x3F000000
36 #define T2D_BM2TEXT_SHIFT 24
37 
38 #define T2D_WIN_SCANNER_BACKGROUND 1
39 #define T2D_BM_SCANNER_BACKGROUND_WIN 0
40 #define T2D_BM_SCANNER_BACKGROUND_EXIT 1
41 #define T2D_BM_SCANNER_BACKGROUND_PIC_LOW 2
42 #define T2D_BM_SCANNER_BACKGROUND_PIC_HI 3
43 #define T2D_BM_SCANNER_BACKGROUND_SELECTOR 4
44 #define T2D_BT_SCANNER_BACKGROUND_EXIT 1
45 #define T2D_BT_SCANNER_BACKGROUND_SELECTOR 2
46 
47 #define T2D_WIN_SCANNER_TOOLBAR 2
48 #define T2D_BM_SCANNER_TOOLBAR_WIN 0
49 #define T2D_BM_SCANNER_TOOLBAR_EXIT 1
50 #define T2D_BM_SCANNER_TOOLBAR_PREVIEW_FREEZE 2
51 #define T2D_BM_SCANNER_TOOLBAR_PREVIEW_OFF 3
52 #define T2D_BM_SCANNER_TOOLBAR_PREVIEW_ON 4
53 #define T2D_BM_SCANNER_TOOLBAR_SELECTAREA_FREEZE 5
54 #define T2D_BM_SCANNER_TOOLBAR_SELECTAREA_OFF 6
55 #define T2D_BM_SCANNER_TOOLBAR_SELECTAREA_ON 7
56 #define T2D_BM_SCANNER_TOOLBAR_SCAN_FREEZE 8
57 #define T2D_BM_SCANNER_TOOLBAR_SCAN_OFF 9
58 #define T2D_BM_SCANNER_TOOLBAR_SCAN_ON 10
59 #define T2D_BT_SCANNER_TOOLBAR_MOVE 1
60 #define T2D_BT_SCANNER_TOOLBAR_EXIT 2
61 #define T2D_BT_SCANNER_TOOLBAR_PREVIEW_OFF 3
62 #define T2D_BT_SCANNER_TOOLBAR_SELECTAREA_OFF 4
63 #define T2D_BT_SCANNER_TOOLBAR_SCAN_OFF 5
64 
65 #define T2D_WIN_SCANNER_PROGRESSBAR 3
66 #define T2D_BM_SCANNER_PROGRESSBAR_WIN 0
67 #define T2D_BM_SCANNER_PROGRESSBAR_EXIT 1
68 #define T2D_BM_SCANNER_PROGRESSBAR_PROGRESS_OFF 2
69 #define T2D_BM_SCANNER_PROGRESSBAR_PROGRESS_ON 3
70 #define T2D_BM_SCANNER_PROGRESSBAR_SCANNING_OFF 4
71 #define T2D_BM_SCANNER_PROGRESSBAR_SCANNING_ON 5
72 
73 #define T2D_WIN_COMPUTER_BACKGROUND 4
74 #define T2D_BM_COMPUTER_BACKGROUND_WIN 0
75 #define T2D_BM_COMPUTER_EMAIL_ON 1
76 #define T2D_BM_COMPUTER_SEARCH_ON 2
77 #define T2D_BM_COMPUTER_QUIT_ON 3
78 #define T2D_BM_COMPUTER_SCRITTE_1 4
79 #define T2D_BM_COMPUTER_SCRITTE_2 5
80 #define T2D_BM_COMPUTER_SCRITTE_3 6
81 #define T2D_BM_COMPUTER_SCRITTE_4 7
82 #define T2D_BT_COMPUTER_BACKGROUND_EMAIL 1
83 #define T2D_BT_COMPUTER_BACKGROUND_SEARCH 2
84 #define T2D_BT_COMPUTER_BACKGROUND_QUIT 3
85 #define T2D_BT_BackgroundWin_TGA__cia1 4
86 #define T2D_BT_BackgroundWin_TGA__cia2 5
87 
88 #define T2D_TEXT_COMPUTER_SCRITTE_1 1
89 #define T2D_TEXT_COMPUTER_SCRITTE_2 2
90 #define T2D_TEXT_COMPUTER_SCRITTE_3 3
91 #define T2D_TEXT_COMPUTER_SCRITTE_4 4
92 
93 #define T2D_WIN_COMPUTER_ERROR 5
94 #define T2D_BM_COMPUTER_COMERROR_WIN 0
95 #define T2D_BM_COMPUTER_DIALERROR_WIN 1
96 #define T2D_BM_COMPUTER_SEARCHERROR_WIN 2
97 #define T2D_BM_COMPUTER_ERROR_COMQUIT_ON 3
98 #define T2D_BM_COMPUTER_ERROR_DIALQUIT_ON 4
99 #define T2D_BM_COMPUTER_ERROR_DIALUP_ON 5
100 #define T2D_BM_COMPUTER_ERROR_OK_ON 6
101 #define T2D_BT_COMPUTER_ERROR_WIN 1
102 #define T2D_BT_COMPUTER_ERROR_MOVE 2
103 #define T2D_BT_COMPUTER_ERROR_COMQUIT 3
104 #define T2D_BT_COMPUTER_ERROR_DIALUP 4
105 #define T2D_BT_COMPUTER_ERROR_DIALQUIT 5
106 #define T2D_BT_COMPUTER_ERROR_OK 6
107 #define T2D_BT_ComError_Win_TGA 7
108 #define T2D_BT_DialError_Win_TGA 8
109 #define T2D_BT_SearchError_Win_TGA 9
110 
111 #define T2D_WIN_COMPUTER_DIALUP 7
112 #define T2D_BM_COMPUTER_DIALUP_WIN 0
113 #define T2D_BM_COMPUTER_DIALUP_1_ON 1
114 #define T2D_BM_COMPUTER_DIALUP_2_ON 2
115 #define T2D_BM_COMPUTER_DIALUP_3_ON 3
116 #define T2D_BM_COMPUTER_DIALUP_4_ON 4
117 #define T2D_BM_COMPUTER_DIALUP_5_ON 5
118 #define T2D_BM_COMPUTER_DIALUP_6_ON 6
119 #define T2D_BM_COMPUTER_DIALUP_7_ON 7
120 #define T2D_BM_COMPUTER_DIALUP_8_ON 8
121 #define T2D_BM_COMPUTER_DIALUP_9_ON 9
122 #define T2D_BM_COMPUTER_DIALUP_0_ON 10
123 #define T2D_BM_COMPUTER_DIALUP_ENTER_ON 11
124 #define T2D_BM_COMPUTER_DIALUP_C_ON 12
125 #define T2D_BM_COMPUTER_DIALUP_OK_ON 13
126 #define T2D_BM_COMPUTER_DIALUP_EXIT_ON 14
127 #define T2D_BM_COMPUTER_DIALUP_NUMBER 15
128 #define T2D_BT_COMPUTER_DIALUP_MOVE 1
129 #define T2D_BT_COMPUTER_DIALUP_1 2
130 #define T2D_BT_COMPUTER_DIALUP_2 3
131 #define T2D_BT_COMPUTER_DIALUP_3 4
132 #define T2D_BT_COMPUTER_DIALUP_4 5
133 #define T2D_BT_COMPUTER_DIALUP_5 6
134 #define T2D_BT_COMPUTER_DIALUP_6 7
135 #define T2D_BT_COMPUTER_DIALUP_7 8
136 #define T2D_BT_COMPUTER_DIALUP_8 9
137 #define T2D_BT_COMPUTER_DIALUP_9 10
138 #define T2D_BT_COMPUTER_DIALUP_0 11
139 #define T2D_BT_COMPUTER_DIALUP_ENTER 12
140 #define T2D_BT_COMPUTER_DIALUP_C 13
141 #define T2D_BT_COMPUTER_DIALUP_OK 14
142 #define T2D_BT_COMPUTER_DIALUP_EXIT 15
143 #define T2D_BT_DialUpWin_TGA__Dial 16
144 #define T2D_BT_DialUpWin_TGA__Enter 17
145 #define T2D_BT_DialUpWin_TGA__Dialling 18
146 
147 #define T2D_TEXT_COMPUTER_DIALUP_NUMBER 1
148 
149 #define T2D_WIN_COMPUTER_SEARCH 8
150 #define T2D_BM_COMPUTER_SEARCH_ALPHABETICAL_WIN 0
151 #define T2D_BM_COMPUTER_SEARCH_CASENAME_WIN 1
152 #define T2D_BM_COMPUTER_SEARCH_SEARCH_ON 2
153 #define T2D_BM_COMPUTER_SEARCH_EXIT_ON 3
154 #define T2D_BM_COMPUTER_SEARCH_NAME_ON 4
155 #define T2D_BM_COMPUTER_SEARCH_SURNAME_ON 5
156 #define T2D_BM_COMPUTER_SEARCH_CASENAME_ON 6
157 #define T2D_BM_COMPUTER_SEARCH_YEAR_ON 7
158 #define T2D_BM_COMPUTER_SEARCH_NAME 8
159 #define T2D_BM_COMPUTER_SEARCH_SURNAME 9
160 #define T2D_BM_COMPUTER_SEARCH_CASENAME 10
161 #define T2D_BM_COMPUTER_SEARCH_YEAR 11
162 #define T2D_BT_COMPUTER_SEARCH_WIN 1
163 #define T2D_BT_COMPUTER_SEARCH_MOVE 2
164 #define T2D_BT_COMPUTER_SEARCH_SEARCH 3
165 #define T2D_BT_COMPUTER_SEARCH_ALPHABETICAL 4
166 #define T2D_BT_COMPUTER_SEARCH_CASENAME 5
167 #define T2D_BT_COMPUTER_SEARCH_NAME_TEXT 6
168 #define T2D_BT_COMPUTER_SEARCH_SURNAME_TEXT 7
169 #define T2D_BT_COMPUTER_SEARCH_CASENAME_TEXT 8
170 #define T2D_BT_COMPUTER_SEARCH_YEAR_TEXT 9
171 #define T2D_BT_COMPUTER_SEARCH_EXIT 10
172 #define T2D_BT_Search_Alphabetical_TGA__search 11
173 #define T2D_BT_Search_Alphabetical_TGA__findby 12
174 #define T2D_BT_Search_Alphabetical_TGA__name 13
175 #define T2D_BT_Search_Alphabetical_TGA__surname 14
176 #define T2D_BT_Search_Alphabetical_TGA__subject 15
177 #define T2D_BT_Search_Alphabetical_TGA__casename 16
178 #define T2D_BT_Search_Alphabetical_TGA__year 17
179 
180 #define T2D_TEXT_COMPUTER_SEARCH_NAME 1
181 #define T2D_TEXT_COMPUTER_SEARCH_SURNAME 2
182 #define T2D_TEXT_COMPUTER_SEARCH_CASENAME 3
183 #define T2D_TEXT_COMPUTER_SEARCH_YEAR 4
184 
185 #define T2D_WIN_COMPUTER_EMAIL 9
186 #define T2D_BM_COMPUTER_EMAIL_WIN 0
187 #define T2D_BM_COMPUTER_EMAIL_EXIT_ON 1
188 #define T2D_BM_COMPUTER_EMAIL_ICON_1 2
189 #define T2D_BM_COMPUTER_EMAIL_ICON_2 3
190 #define T2D_BT_COMPUTER_EMAIL_WIN 1
191 #define T2D_BT_COMPUTER_EMAIL_MOVE 2
192 #define T2D_BT_COMPUTER_EMAIL_EXIT 3
193 #define T2D_BT_COMPUTER_EMAIL_SCROLLUP 4
194 #define T2D_BT_COMPUTER_EMAIL_SCROLLDOWN 5
195 #define T2D_BT_COMPUTER_EMAIL_ICON_1 6
196 #define T2D_BT_COMPUTER_EMAIL_ICON_2 7
197 #define T2D_BT_EMail_Win_TGA__email 8
198 #define T2D_BT_EMail_Win_TGA__avail 9
199 
200 #define T2D_WIN_COMPUTER_DOCUMENT 10
201 #define T2D_BM_COMPUTER_DOCUMENT_WIN 0
202 #define T2D_BM_COMPUTER_DOCUMENT_SCROLLUP_ON 1
203 #define T2D_BM_COMPUTER_DOCUMENT_SCROLLDOWN_ON 2
204 #define T2D_BM_COMPUTER_DOCUMENT_EXIT_ON 3
205 #define T2D_BM_COMPUTER_DOCUMENT_FIRST 4
206 #define T2D_BM_COMPUTER_DOCUMENT_ANTONIOCORONA 4
207 #define T2D_BM_COMPUTER_DOCUMENT_JACOBKRENN 5
208 #define T2D_BM_COMPUTER_DOCUMENT_PETERDUKES 6
209 #define T2D_BM_COMPUTER_DOCUMENT_VICTORVALENCIA 7
210 #define T2D_BM_COMPUTER_DOCUMENT_MERCURY_1969_1 8
211 #define T2D_BM_COMPUTER_DOCUMENT_MERCURY_1969_2 9
212 #define T2D_BM_COMPUTER_DOCUMENT_MERCURY_1969_3 10
213 #define T2D_BM_COMPUTER_DOCUMENT_MERCURY_1969_4 11
214 #define T2D_BM_COMPUTER_DOCUMENT_CONFIDENCE_1942_1 12
215 #define T2D_BM_COMPUTER_DOCUMENT_CONFIDENCE_1942_2 13
216 #define T2D_BM_COMPUTER_DOCUMENT_CONFIDENCE_1942_3 14
217 #define T2D_BM_COMPUTER_DOCUMENT_ARL_1998_1 15
218 #define T2D_BM_COMPUTER_DOCUMENT_CONV_CONFIDENCE 16
219 #define T2D_BM_COMPUTER_DOCUMENT_CONV_MERCURY 17
220 #define T2D_BM_COMPUTER_DOCUMENT_GREGOR_MEM 18
221 #define T2D_BM_COMPUTER_DOCUMENT_BENNA 19
222 #define T2D_BM_COMPUTER_DOCUMENT_ANDREA 20
223 #define T2D_BM_COMPUTER_DOCUMENT_BELLONDS 21
224 #define T2D_BM_COMPUTER_DOCUMENT_DANIELE 22
225 #define T2D_BM_COMPUTER_DOCUMENT_EDO 23
226 #define T2D_BM_COMPUTER_DOCUMENT_FEDE 24
227 #define T2D_BM_COMPUTER_DOCUMENT_FIABE 25
228 #define T2D_BM_COMPUTER_DOCUMENT_FOX 26
229 #define T2D_BM_COMPUTER_DOCUMENT_GIUSTI 27
230 #define T2D_BM_COMPUTER_DOCUMENT_KRIZIA 28
231 #define T2D_BM_COMPUTER_DOCUMENT_NONJI 29
232 #define T2D_BM_COMPUTER_DOCUMENT_SPARTECO 30
233 #define T2D_BM_COMPUTER_DOCUMENT_TAG 31
234 #define T2D_BM_COMPUTER_DOCUMENT_TIZ 32
235 #define T2D_BM_COMPUTER_DOCUMENT_WALTER 33
236 #define T2D_BM_COMPUTER_DOCUMENT_VICKY 34
237 #define T2D_BM_COMPUTER_DOCUMENT_PIETRO 35
238 #define T2D_BM_COMPUTER_DOCUMENT_LAST 35
239 #define T2D_BT_COMPUTER_DOCUMENT_WIN 1
240 #define T2D_BT_COMPUTER_DOCUMENT_MOVE 2
241 #define T2D_BT_COMPUTER_DOCUMENT_SCROLL 3
242 #define T2D_BT_COMPUTER_DOCUMENT_EXIT 4
243 #define T2D_BT_COMPUTER_DOCUMENT_SCROLLUP 5
244 #define T2D_BT_COMPUTER_DOCUMENT_SCROLLDOWN 6
245 #define T2D_BT_Document_Win_TGA 7
246 
247 #define T2D_WIN_COMPUTER_DOCLIST 11
248 #define T2D_BM_COMPUTER_DOCLIST_WIN 0
249 #define T2D_BM_COMPUTER_DOCLIST_EXIT_ON 1
250 #define T2D_BM_COMPUTER_DOCLIST_SCROLLUP_ON 2
251 #define T2D_BM_COMPUTER_DOCLIST_SCROLLDOWN_ON 3
252 #define T2D_BM_COMPUTER_DOCLIST_LINES_START 4
253 #define T2D_BM_COMPUTER_DOCLIST_LINES_END 7
254 #define T2D_BT_COMPUTER_DOCLIST_WIN 1
255 #define T2D_BT_COMPUTER_DOCLIST_MOVE 2
256 #define T2D_BT_COMPUTER_DOCLIST_EXIT 3
257 #define T2D_BT_COMPUTER_DOCLIST_SCROLLUP 4
258 #define T2D_BT_COMPUTER_DOCLIST_SCROLLDOWN 5
259 #define T2D_BT_COMPUTER_DOCLIST_LINES_START 6
260 #define T2D_BT_COMPUTER_DOCLIST_LINES_END 12
261 #define T2D_BT_DocList_Win_TGA 13
262 
263 #define T2D_TEXT_COMPUTER_DOCLIST_LINES_START 1
264 #define T2D_TEXT_COMPUTER_DOCLIST_LINES_END 7
265 
266 
267 #define T2D_WIN_COMPUTER_EMAIL_VIEWER 12
268 #define T2D_BM_COMPUTER_EMAIL_VIEWER_WIN 0
269 #define T2D_BM_COMPUTER_EMAIL_VIEWER_SCROLLUP_ON 1
270 #define T2D_BM_COMPUTER_EMAIL_VIEWER_SCROLLDOWN_ON 2
271 #define T2D_BM_COMPUTER_EMAIL_VIEWER_EXIT_ON 3
272 #define T2D_BM_COMPUTER_EMAIL_1 4
273 #define T2D_BM_COMPUTER_EMAIL_2 5
274 #define T2D_BM_COMPUTER_EMAIL_TEXT_1 6
275 #define T2D_BM_COMPUTER_EMAIL_TEXT_2 7
276 #define T2D_BT_COMPUTER_EMAIL_VIEWER_WIN 1
277 #define T2D_BT_COMPUTER_EMAIL_VIEWER_MOVE 2
278 #define T2D_BT_COMPUTER_EMAIL_VIEWER_SCROLL 3
279 #define T2D_BT_COMPUTER_EMAIL_VIEWER_SCROLLUP 4
280 #define T2D_BT_COMPUTER_EMAIL_VIEWER_SCROLLDOWN 5
281 #define T2D_BT_COMPUTER_EMAIL_VIEWER_EXIT 6
282 #define T2D_BT_EMail_Viewer_Win_TGA 7
283 
284 #define T2D_TEXT_COMPUTER_EMAIL_1 1
285 #define T2D_TEXT_COMPUTER_EMAIL_2 2
286 
287 #define T2D_WIN_DIARIO 13
288 #define T2D_BM_DIARIO_PAGE_1 0
289 #define T2D_BM_DIARIO_PAGE_2 1
290 #define T2D_BM_DIARIO_PAGE_3 2
291 #define T2D_BM_DIARIO_PAGE_4 3
292 #define T2D_BM_DIARIO_PAGE_LEFT_ON 4
293 #define T2D_BM_DIARIO_PAGE_RIGHT_ON 5
294 #define T2D_BM_DIARIO_EXIT_ON 6
295 #define T2D_BM_DIARIO_PAGE_1_TEXT_1 11
296 #define T2D_BM_DIARIO_PAGE_1_TEXT_2 12
297 #define T2D_BM_DIARIO_PAGE_1_TEXT_3 13
298 #define T2D_BM_DIARIO_PAGE_1_TEXT_4 14
299 #define T2D_BM_DIARIO_PAGE_1_TEXT_5 15
300 #define T2D_BM_DIARIO_PAGE_1_TEXT_6 16
301 #define T2D_BM_DIARIO_PAGE_2_TEXT_1 21
302 #define T2D_BM_DIARIO_PAGE_2_TEXT_2 22
303 #define T2D_BM_DIARIO_PAGE_2_TEXT_3 23
304 #define T2D_BM_DIARIO_PAGE_2_TEXT_4 24
305 #define T2D_BM_DIARIO_PAGE_2_TEXT_5 25
306 #define T2D_BM_DIARIO_PAGE_2_TEXT_6 26
307 #define T2D_BM_DIARIO_PAGE_3_TEXT_1 31
308 #define T2D_BM_DIARIO_PAGE_3_TEXT_2 32
309 #define T2D_BM_DIARIO_PAGE_3_TEXT_3 33
310 #define T2D_BM_DIARIO_PAGE_3_TEXT_4 34
311 #define T2D_BM_DIARIO_PAGE_4_TEXT_1 41
312 #define T2D_BM_DIARIO_PAGE_4_TEXT_2 42
313 #define T2D_BM_DIARIO_PAGE_4_TEXT_3 43
314 #define T2D_BM_DIARIO_PAGE_4_TEXT_4 44
315 #define T2D_BM_DIARIO_PAGE_4_TEXT_5 45
316 #define T2D_BM_DIARIO_PAGE_4_TEXT_6 46
317 #define T2D_BM_DIARIO_PAGE_4_TEXT_7 47
318 #define T2D_BM_DIARIO_PAGE_4_TEXT_8 48
319 #define T2D_BM_DIARIO_PAGE_4_TEXT_9 49
320 #define T2D_BM_DIARIO_PAGE_4_TEXT_10 50
321 #define T2D_BM_DIARIO_PAGE_4_TEXT_11 51
322 #define T2D_BM_DIARIO_PAGE_4_TEXT_12 52
323 #define T2D_BT_DIARIO_PAGE_LEFT 1
324 #define T2D_BT_DIARIO_PAGE_RIGHT 2
325 #define T2D_BT_DIARIO_EXIT 3
326 #define T2D_BT_DIARIO_PAGE_1_TEXT_1 11
327 #define T2D_BT_DIARIO_PAGE_1_TEXT_2 12
328 #define T2D_BT_DIARIO_PAGE_1_TEXT_3 13
329 #define T2D_BT_DIARIO_PAGE_1_TEXT_4 14
330 #define T2D_BT_DIARIO_PAGE_1_TEXT_5 15
331 #define T2D_BT_DIARIO_PAGE_1_TEXT_6 16
332 #define T2D_BT_DIARIO_PAGE_2_TEXT_1 21
333 #define T2D_BT_DIARIO_PAGE_2_TEXT_2 22
334 #define T2D_BT_DIARIO_PAGE_2_TEXT_3 23
335 #define T2D_BT_DIARIO_PAGE_2_TEXT_4 24
336 #define T2D_BT_DIARIO_PAGE_2_TEXT_5 25
337 #define T2D_BT_DIARIO_PAGE_2_TEXT_6 26
338 #define T2D_BT_DIARIO_PAGE_3_TEXT_1 31
339 #define T2D_BT_DIARIO_PAGE_3_TEXT_2 32
340 #define T2D_BT_DIARIO_PAGE_3_TEXT_3 33
341 #define T2D_BT_DIARIO_PAGE_3_TEXT_4 34
342 #define T2D_BT_DIARIO_PAGE_4_TEXT_1 41
343 #define T2D_BT_DIARIO_PAGE_4_TEXT_2 42
344 #define T2D_BT_DIARIO_PAGE_4_TEXT_3 43
345 #define T2D_BT_DIARIO_PAGE_4_TEXT_4 44
346 #define T2D_BT_DIARIO_PAGE_4_TEXT_5 45
347 #define T2D_BT_DIARIO_PAGE_4_TEXT_6 46
348 #define T2D_BT_DIARIO_PAGE_4_TEXT_7 47
349 #define T2D_BT_DIARIO_PAGE_4_TEXT_8 48
350 #define T2D_BT_DIARIO_PAGE_4_TEXT_9 49
351 #define T2D_BT_DIARIO_PAGE_4_TEXT_10 50
352 #define T2D_BT_DIARIO_PAGE_4_TEXT_11 51
353 #define T2D_BT_DIARIO_PAGE_4_TEXT_12 52
354 
355 #define T2D_WIN_PDA_MAIN 14
356 #define T2D_BM_PDA_MAIN_WIN 0
357 #define T2D_BM_PDA_MAIN_TONE_ON 1
358 #define T2D_BM_PDA_MAIN_LOG_ON 2
359 #define T2D_BM_PDA_MAIN_TIME 3
360 #define T2D_BM_PDA_MAIN_QUIT_ON 4
361 #define T2D_BT_PDA_MAIN_TONE 1
362 #define T2D_BT_PDA_MAIN_LOG 2
363 #define T2D_BT_PDA_MAIN_QUIT 3
364 
365 #define T2D_TEXT_PDA_MAIN_TIME 1
366 
367 #define T2D_WIN_PDA_LOG 15
368 #define T2D_BM_PDA_LOG_WIN 0
369 #define T2D_BM_PDA_LOG_SCROLLUP_ON 1
370 #define T2D_BM_PDA_LOG_SCROLLDOWN_ON 2
371 #define T2D_BM_PDA_LOG_SB 3
372 #define T2D_BM_PDA_LOG_EXIT_ON 4
373 #define T2D_BM_PDA_LOG_DATA_START 5
374 #define T2D_BM_PDA_LOG_DATA_END 25
375 #define T2D_BM_PDA_LOG_TEXT_START 26
376 #define T2D_BM_PDA_LOG_TEXT_END 46
377 #define T2D_BT_PDA_LOG_WIN 1
378 #define T2D_BT_PDA_LOG_SCROLL 2
379 #define T2D_BT_PDA_LOG_SCROLLUP 3
380 #define T2D_BT_PDA_LOG_SCROLLDOWN 4
381 #define T2D_BT_PDA_LOG_BARRA 5
382 #define T2D_BT_PDA_LOG_SB 6
383 #define T2D_BT_PDA_LOG_EXIT 7
384 #define T2D_BT_PDA_Log_Win_TGA 8
385 
386 #define T2D_TEXT_PDA_LOG_DATA_START 1
387 #define T2D_TEXT_PDA_LOG_DATA_END 21
388 #define T2D_TEXT_PDA_LOG_TEXT_START 22
389 #define T2D_TEXT_PDA_LOG_TEXT_END 42
390 
391 #define T2D_WIN_PDA_TONE 16
392 #define T2D_BM_PDA_TONE_WIN 0
393 #define T2D_BM_PDA_TONE_HELP_ON 1
394 #define T2D_BM_PDA_TONE_EXIT_ON 2
395 #define T2D_BM_PDA_TONE_WAVE_1 3
396 #define T2D_BM_PDA_TONE_WAVE_2 4
397 #define T2D_BM_PDA_TONE_REDLINE 5
398 #define T2D_BM_PDA_TONE_BARRA_1 6
399 #define T2D_BM_PDA_TONE_BARRA_2 7
400 #define T2D_BM_PDA_TONE_ACQUIRE_ON 8
401 #define T2D_BM_PDA_TONE_PROCESS_ON 9
402 #define T2D_BM_PDA_TONE_RISULTATO 10
403 #define T2D_BT_PDA_TONE_WIN 1
404 #define T2D_BT_PDA_TONE_HELP 2
405 #define T2D_BT_PDA_TONE_EXIT 3
406 #define T2D_BT_PDA_TONE_ACQUIRE 4
407 #define T2D_BT_PDA_TONE_PROCESS 5
408 #define T2D_BT_PDA_Tone_Win_TGA 6
409 
410 //#define T2D_TEXT_PDA_TONE_RISULTATO 1
411 
412 #define T2D_WIN_PDA_HELP 17
413 #define T2D_BM_PDA_HELP_WIN 0
414 #define T2D_BM_PDA_HELP_WIN2 1
415 #define T2D_BM_PDA_HELP_SCROLLUP_ON 2
416 #define T2D_BM_PDA_HELP_SCROLLDOWN_ON 3
417 #define T2D_BM_PDA_HELP_EXIT_ON 4
418 #define T2D_BM_PDA_HELP_TEXT_START 5
419 #define T2D_BM_PDA_HELP_TEXT_END 15
420 #define T2D_BT_PDA_HELP_WIN 1
421 #define T2D_BT_PDA_HELP_MOVE 2
422 #define T2D_BT_PDA_HELP_SCROLL 3
423 #define T2D_BT_PDA_HELP_SCROLLUP 4
424 #define T2D_BT_PDA_HELP_SCROLLDOWN 5
425 #define T2D_BT_PDA_HELP_EXIT 6
426 #define T2D_BT_Help_Win_TGA 7
427 
428 #define T2D_TEXT_PDA_HELP_START 1
429 #define T2D_TEXT_PDA_HELP_END 11
430 
431 #define T2D_WIN_OPTIONS_MAIN 18
432 #define T2D_BM_OPTIONS_WIN 1
433 #define T2D_BM_OPTIONS_CONTORNO 2
434 #define T2D_BM_OPTIONS_SAVE 3
435 #define T2D_BM_OPTIONS_LOAD 4
436 #define T2D_BM_OPTIONS_OPTIONS 5
437 #define T2D_BM_OPTIONS_GRIGLIA 6
438 #define T2D_BM_OPTIONS_FRECCIA_SU_OFF 7
439 #define T2D_BM_OPTIONS_FRECCIA_SU_ON 8
440 #define T2D_BM_OPTIONS_FRECCIA_GIU_OFF 9
441 #define T2D_BM_OPTIONS_FRECCIA_GIU_ON 10
442 #define T2D_BM_OPTIONS_SAVE_START 11
443 #define T2D_BM_OPTIONS_SAVE_END T2D_BM_OPTIONS_SAVE_START+8
444 #define T2D_BM_OPTIONS_TEXT_SAVE_START 20
445 #define T2D_BM_OPTIONS_TEXT_SAVE_END T2D_BM_OPTIONS_TEXT_SAVE_START+8
446 #define T2D_BM_OPTIONS_SOUND_ON 29
447 #define T2D_BM_OPTIONS_MUSIC_ON 30
448 #define T2D_BM_OPTIONS_SPEECH_ON 31
449 #define T2D_BM_OPTIONS_SUBTITLES_ON 32
450 #define T2D_BM_OPTIONS_SOUND_OFF 33
451 #define T2D_BM_OPTIONS_MUSIC_OFF 34
452 #define T2D_BM_OPTIONS_SPEECH_OFF 35
453 #define T2D_BM_OPTIONS_SUBTITLES_OFF 36
454 #define T2D_BM_OPTIONS_SOUND_BARRA 37
455 #define T2D_BM_OPTIONS_SOUND_PIROLO 38
456 #define T2D_BM_OPTIONS_MUSIC_BARRA 39
457 #define T2D_BM_OPTIONS_MUSIC_PIROLO 40
458 #define T2D_BM_OPTIONS_SPEECH_BARRA 41
459 #define T2D_BM_OPTIONS_SPEECH_PIROLO 42
460 #define T2D_BM_OPTIONS_MAINMENU_OFF 43
461 #define T2D_BM_OPTIONS_MAINMENU_ON 44
462 #define T2D_BT_OPTIONS_SAVE 1
463 #define T2D_BT_OPTIONS_LOAD 2
464 #define T2D_BT_OPTIONS_OPTIONS 3
465 #define T2D_BT_OPTIONS_QUIT 4
466 #define T2D_BT_OPTIONS_CLOSE 5
467 #define T2D_BT_OPTIONS_FRECCIA_SU 6
468 #define T2D_BT_OPTIONS_FRECCIA_GIU 7
469 #define T2D_BT_OPTIONS_SAVE_START 8
470 #define T2D_BT_OPTIONS_SAVE_END T2D_BT_OPTIONS_SAVE_START+8
471 #define T2D_BT_OPTIONS_SOUND 17
472 #define T2D_BT_OPTIONS_MUSIC 18
473 #define T2D_BT_OPTIONS_SPEECH 19
474 #define T2D_BT_OPTIONS_SUBTITLES 20
475 #define T2D_BT_OPTIONS_SOUND_BARRA 21
476 #define T2D_BT_OPTIONS_MUSIC_BARRA 22
477 #define T2D_BT_OPTIONS_SPEECH_BARRA 23
478 #define T2D_BT_OPTIONS_MAINMENU 24
479 
480 #define T2D_TEXT_OPTIONS_SAVE_START 1
481 #define T2D_TEXT_OPTIONS_SAVE_END T2D_TEXT_OPTIONS_SAVE_START+1
482 
483 #define T2D_WIN_MAINMENU_MAIN 19
484 #define T2D_BM_MAINMENU_WIN 1
485 #define T2D_BM_MAINMENU_PLAY_ON 2
486 #define T2D_BM_MAINMENU_PLAY_OFF 3
487 #define T2D_BM_MAINMENU_LOAD_ON 4
488 #define T2D_BM_MAINMENU_LOAD_OFF 5
489 #define T2D_BM_MAINMENU_EXIT_ON 6
490 #define T2D_BM_MAINMENU_EXIT_OFF 7
491 #define T2D_BT_MAINMENU_PLAY 1
492 #define T2D_BT_MAINMENU_LOAD 2
493 #define T2D_BT_MAINMENU_EXIT 3
494 
495 #define T2D_WIN_GAMEOVER_MAIN 20
496 #define T2D_BM_GAMEOVER_WIN 1
497 #define T2D_BT_GameOver_Win_TGA 1
498 
499 namespace Watchmaker {
500 
501 struct t2dBUTTON {
502  uint8 on; // on/off
503  struct SRect lim; // limiti del bottone
504  int32 tnum; // numero bitmap col tooltip
505 
506  t2dBUTTON() {
507  reset();
508  }
509 
510  void reset() {
511  on = 0;
512  lim.reset();
513  tnum = 0;
514  }
515 };
516 
517 struct t2dWINDOW {
518  int32 px, py; // poszione finestra
519  int32 sy; // scroll interno finestra
520  struct SDDBitmap bm[T2D_MAX_BITMAPS_IN_WIN]; // bitmaps ordinate
521  struct SDDText text[T2D_MAX_TEXTS_IN_WIN]; // testi
522  t2dBUTTON bt[T2D_MAX_BUTTONS_IN_WIN]; // bottoni ordinati
523  bool NOTSTRETCHED;
524 
525  t2dWINDOW() {
526  reset();
527  }
528 
529  void reset() {
530  px = 0;
531  py = 0;
532  sy = 0;
533  for (uint i = 0; i < ARRAYSIZE(bm); i++) bm[i].reset();
534  for (uint i = 0; i < ARRAYSIZE(text); i++) text[i].reset();
535  for (uint i = 0; i < ARRAYSIZE(bt); i++) bt[i].reset();
536  NOTSTRETCHED = false;
537  }
538 };
539 
540 struct PDALogS {
541  int PDALogInd = 0;
542  int IndentX = 0;
543 };
544 
545 struct SavesS {
546  int NFile;
547 
548  int Hour;
549  int Min;
550  int Sec;
551  int Day;
552  int Month;
553  int Year;
554 };
555 
556 void ChangeExclusiveMouseMode();
557 
558 void PDA_Tone_Acquire_Help_Func();
559 void SetHelpWin(Fonts &fonts, void (*Func)(), int NArg, ...);
560 void CaricaSaves(WGame &game);
561 void SortSaves();
562 void RefreshSaveImg(WGame &game, int Pos, uint8 Type);
563 void FormattaLogs(WGame &game);
564 
565 } // End of namespace Watchmaker
566 
567 #endif // WATCHMAKER_T2D_INTERNAL_H
#define ARRAYSIZE(x)
Definition: util.h:91
Definition: 2d_stuff.h:30
Definition: t2d_internal.h:545
Type
Definition: log.h:33
Definition: struct.h:416
Definition: fonts.h:37
Definition: t2d_internal.h:517
Definition: t2d_internal.h:540
Definition: t2d_internal.h:501
Definition: struct.h:442
Definition: game.h:56
Definition: struct.h:461