MENU.H 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. /*
  14. * $Source: f:/miner/source/main/rcs/menu.h $
  15. * $Revision: 2.1 $
  16. * $Author: mike $
  17. * $Date: 1995/03/06 16:47:41 $
  18. *
  19. * Menu prototypes and variables
  20. *
  21. * $Log: menu.h $
  22. * Revision 2.1 1995/03/06 16:47:41 mike
  23. * destination saturn
  24. *
  25. * Revision 2.0 1995/02/27 11:29:47 john
  26. * New version 2.0, which has no anonymous unions, builds with
  27. * Watcom 10.0, and doesn't require parsing BITMAPS.TBL.
  28. *
  29. * Revision 1.34 1994/12/12 00:16:16 john
  30. * Added auto-leveling flag.
  31. *
  32. * Revision 1.33 1994/12/07 20:04:26 mike
  33. * set Max_debris_objects.
  34. *
  35. * Revision 1.32 1994/11/14 17:23:19 rob
  36. * ADded extern for default difficulty settings.
  37. *
  38. * Revision 1.31 1994/11/10 11:08:29 mike
  39. * detail level stuff.
  40. *
  41. * Revision 1.30 1994/11/05 14:05:53 john
  42. * Fixed fade transitions between all screens by making gr_palette_fade_in and out keep
  43. * track of whether the palette is faded in or not. Then, wherever the code needs to fade out,
  44. * it just calls gr_palette_fade_out and it will fade out if it isn't already. The same with fade_in.
  45. * This eliminates the need for all the flags like Menu_fade_out, game_fade_in palette, etc.
  46. *
  47. * Revision 1.29 1994/11/02 11:59:44 john
  48. * Moved menu out of game into inferno main loop.
  49. *
  50. * Revision 1.28 1994/10/17 20:30:59 john
  51. * Made the text for the difficulty labels global so that
  52. * the high score screen can print "rookie" or whatever.
  53. *
  54. * Revision 1.27 1994/10/04 10:47:09 matt
  55. * Made main menu remember selected item
  56. *
  57. * Revision 1.26 1994/08/10 19:55:19 john
  58. * Changed font stuff; Took out old menu; messed up lots of
  59. * other stuff like game sequencing messages, etc.
  60. *
  61. * Revision 1.25 1994/06/23 18:54:09 matt
  62. * Cleaned up game start/menu interaction, and improved main menu a little
  63. *
  64. * Revision 1.24 1994/06/21 12:11:50 yuan
  65. * Fixed up menus and added HUDisplay messages.
  66. *
  67. * Revision 1.23 1994/06/20 23:15:16 yuan
  68. * Color switching capability for the menus.
  69. *
  70. * Revision 1.22 1994/06/20 22:02:25 yuan
  71. * Made menu GREEN by POPULAR DEMAND!!
  72. *
  73. * Revision 1.21 1994/06/20 21:05:48 yuan
  74. * Fixed up menus.
  75. *
  76. * Revision 1.20 1994/06/20 19:19:29 yuan
  77. * Tidied up the menu and the "message blocks" between levels, etc.
  78. *
  79. * Revision 1.19 1994/06/17 18:01:10 john
  80. * A bunch of new stuff by John
  81. *
  82. * Revision 1.18 1994/05/16 09:37:22 matt
  83. * Got rid of global continue_flag
  84. *
  85. * Revision 1.17 1994/05/14 17:14:51 matt
  86. * Got rid of externs in source (non-header) files
  87. *
  88. * Revision 1.16 1994/05/10 12:14:26 yuan
  89. * Game save/load... Demo levels 1-5 added...
  90. * High scores fixed...
  91. *
  92. * Revision 1.15 1994/05/05 09:21:21 yuan
  93. * *** empty log message ***
  94. *
  95. * Revision 1.14 1994/04/29 14:55:40 mike
  96. * Change some menu colors.
  97. *
  98. * Revision 1.13 1994/04/28 18:04:36 yuan
  99. * Gamesave added.
  100. * Trigger problem fixed (seg pointer is replaced by index now.)
  101. *
  102. * Revision 1.12 1994/02/18 11:55:01 yuan
  103. * Fixed menu to be called from game.
  104. *
  105. * Revision 1.11 1994/02/10 17:45:39 yuan
  106. * Integrated some hacks which still need to be fixed.
  107. *
  108. * Revision 1.10 1994/02/01 22:50:23 yuan
  109. * Final menu version for demo
  110. *
  111. * Revision 1.9 1994/02/01 11:50:17 yuan
  112. * Moved quit message down just a tiny bit
  113. *
  114. * Revision 1.8 1994/01/31 17:30:16 yuan
  115. * Fixed quit not disappearing problem
  116. *
  117. * Revision 1.7 1994/01/31 12:25:20 yuan
  118. * New menu stuff
  119. *
  120. * Revision 1.6 1994/01/26 13:14:04 john
  121. * *** empty log message ***
  122. *
  123. * Revision 1.5 1993/12/29 16:44:44 yuan
  124. * Added some function definitions
  125. *
  126. * Revision 1.4 1993/12/13 18:53:12 yuan
  127. * Fixed dependency problem
  128. *
  129. * Revision 1.3 1993/12/12 13:53:51 yuan
  130. * Added menu and -g flag
  131. *
  132. * Revision 1.2 1993/12/10 16:07:17 yuan
  133. * Working on menu system. Updated the title screen.
  134. *
  135. * Revision 1.1 1993/12/10 12:45:27 yuan
  136. * Initial revision
  137. *
  138. *
  139. */
  140. #ifndef _MENU_H
  141. #define _MENU_H
  142. //returns number of item chosen
  143. extern int DoMenu();
  144. extern void do_options_menu();
  145. extern void set_detail_level_parameters(int detail_level);
  146. extern char *menu_difficulty_text[];
  147. extern int Player_default_difficulty;
  148. extern int Max_debris_objects;
  149. extern int Auto_leveling_on;
  150. #endif