blob: b81ab0bf89a462e804a4f09624cb42e319a1faa9 (
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
|
#ifndef _included_menugfx_h_
#define _included_menugfx_h_
#include "aw.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "langenum.h"
// structures used for the menu code
typedef struct menugraphic {
char *filename;
int image_number;
LPDIRECTDRAWSURFACE image_ptr;
AW_BACKUPTEXTUREHANDLE hBackup;
short destx;
short desty;
short width;
short height;
} MENUGRAPHIC;
/* JH 12/5/97 these were static in menuplat.cpp - but they're quite useful functions */
extern void LoadMenuGraphic(MENUGRAPHIC* menugraphptr);
extern void BLTMenuToScreen(MENUGRAPHIC* menuptr);
extern void ReleaseMenuGraphic(MENUGRAPHIC* mptr);
typedef struct menu_graphic_item{
int id;
MENUGRAPHIC On;
MENUGRAPHIC Off;
} MENU_GRAPHIC_ITEM;
/* KJL 15:23:39 05/03/97 - new menu_text_item, which
looks as much like the menu_font_item as possible
while enabling me to add language internationalization */
typedef struct menu_text_item
{
int id;
enum TEXTSTRING_ID StringID;
char *SecondStringPtr;
int X;
int Y;
} MENU_TEXT_ITEM;
// OVERALL menus - this describes one menu screen
typedef struct avp_menu
{
MENUGRAPHIC *backdrop;
MENU_GRAPHIC_ITEM *menugitems;
MENU_TEXT_ITEM *menufitems;
int previous_selection;
int default_selection;
} AVP_MENU;
#define BASEX 112
#define BASEY 43
extern AVP_MENU *Current_Menu;
extern void ProcessGraphicForLoading(AVP_MENU *menu_to_load);
extern void ProcessGraphicForUnloading(AVP_MENU *menu_to_load);
extern void PlatformSpecificEnteringDatabase(void);
extern void PlatformSpecificExitingDatabase(void);
#ifdef __cplusplus
}
#endif
#endif /* ! _included_menugfx_h_ */
|