]> icculus.org git repositories - btb/d2x.git/blob - main/menu.h
documentation
[btb/d2x.git] / main / menu.h
1 /* $Id: menu.h,v 1.3 2002-08-06 05:12:09 btb Exp $ */
2 /*
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
13 */
14
15
16 #ifndef _MENU_H
17 #define _MENU_H
18
19 //returns number of item chosen
20 extern int DoMenu();
21 extern void do_options_menu();
22
23 extern int MenuHires;
24
25 #if 0
26 #ifdef SHAREWARE
27         #ifdef RELEASE
28                 #ifdef MACINTOSH
29                         #define Menu_pcx_name "\x01menub.pcx"   //read only from hog file
30                 #else
31                         #define Menu_pcx_name "\x01menud.pcx"   //read only from hog file
32                 #endif
33         #else
34 //              #define Menu_pcx_name (MenuHires?"menub.pcx":"menud.pcx")       //name of background bitmap
35                 #define Menu_pcx_name "menud.pcx"
36         #endif
37 #else
38         #ifdef D2_OEM
39                 #ifdef RELEASE
40                         #define Menu_pcx_name (MenuHires?"\x01menuob.pcx":"\x01menuo.pcx")      //read only from hog file
41                 #else
42                         #define Menu_pcx_name (MenuHires?"menuob.pcx":"menuo.pcx")              //name of background bitmap
43                 #endif
44         #else   //Full version
45                 #ifdef RELEASE
46                         #define Menu_pcx_name (MenuHires?"\x01menub.pcx":"\x01menu.pcx")        //read only from hog file
47                 #else
48                         #define Menu_pcx_name (MenuHires?"menub.pcx":"menu.pcx")                //name of background bitmap
49                 #endif
50         #endif
51 #endif
52 #else
53 #define Menu_pcx_name (MenuHires && cfexist("menub.pcx")?"menub.pcx":(cfexist("menu.pcx")?"menu.pcx":"menud.pcx"))
54 #endif
55
56 extern void set_detail_level_parameters(int detail_level);
57
58 extern char *menu_difficulty_text[];
59 extern int Player_default_difficulty;
60 extern int Max_debris_objects;
61 extern int Auto_leveling_on;
62 extern int Missile_view_enabled;
63 extern int Escort_view_enabled;
64 extern int Cockpit_rear_view;
65
66 #endif