home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / main / editor / khelp.c < prev    next >
C/C++ Source or Header  |  1998-06-08  |  7KB  |  175 lines

  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/editor/rcs/khelp.c $
  15.  * $Revision: 2.0 $
  16.  * $Author: john $
  17.  * $Date: 1995/02/27 11:34:27 $
  18.  *
  19.  * Functions for showing help.
  20.  *
  21.  * $Log: khelp.c $
  22.  * Revision 2.0  1995/02/27  11:34:27  john
  23.  * Version 2.0! No anonymous unions, Watcom 10.0, with no need
  24.  * for bitmaps.tbl.
  25.  * 
  26.  * Revision 1.5  1993/12/02  12:39:30  matt
  27.  * Removed extra includes
  28.  * 
  29.  * Revision 1.4  1993/11/05  17:32:57  john
  30.  * added funcs
  31.  * .,
  32.  * 
  33.  * Revision 1.3  1993/11/03  13:42:41  yuan
  34.  * Updated help commands
  35.  * 
  36.  * Revision 1.2  1993/10/22  19:48:07  yuan
  37.  * added ctrl-shift-keypad comment in help.
  38.  * 
  39.  * Revision 1.1  1993/10/13  18:53:16  john
  40.  * Initial revision
  41.  * 
  42.  *
  43.  */
  44.  
  45. #pragma off (unreferenced)
  46. static char rcsid[] = "$Id: khelp.c 2.0 1995/02/27 11:34:27 john Exp $";
  47. #pragma on (unreferenced)
  48.  
  49. #include "inferno.h"
  50. #include "editor.h"
  51.  
  52. #include "ui.h"
  53.  
  54. static char MainHelpText[] = "\nMED General Functions\n\n" \
  55. "SPACEBAR         Full Redraw\n" \
  56. "BACKSPACE        Drop into debugger\n\n" \
  57. "A                Attach a segment\n" \
  58. "D                Delete current segment\n\n" \
  59. "F                Toggle to game\n" \
  60. "G or S           Go to game (Toggle screen)\n\n" \
  61. "ALT-C            Create new mine\n" \
  62. "ALT-S            Save mine\n" \
  63. "ALT-L            Load mine\n"\
  64. "ESC              Exit editor\n"\
  65. "ALT-Q/CTRL-Q/SHIFT-Q also Exit editor\n";
  66.  
  67. static char SegmentHelpText[] = "MED Segment Functions\n\n" \
  68. "ALT-B            Create Bridge from current to marked segment\n" \
  69. "ALT-E            Exchange current and marked segments\n" \
  70. "ALT-J            Create Joint between current and marked segments\n" \
  71. "ALT-SHIFT-J      Create Joint on current side and adjacent segments\n" \
  72. "ALT-CTRL-J       Create Joint on current segment and adjacent segments\n" \
  73. "ALT-CTRL-SHIFT-J Create Joints on all adjacent segments\n" \
  74. "ALT-M            Mark current segment and side\n" \
  75. "ALT-N            Create default segment for New_segment\n" \
  76. "CTRL-A           Toggle - Draw all segments/Draw connected segments\n" \
  77. "CTRL-C           Clear selected list\n" \
  78. "CTRL-D           Toggle display of coordinate axes\n" \
  79. "CTRL-S           Advance to segment through Curside\n" \
  80. "ALT-T            Assign Texture to current side\n" \
  81. "CTRL-P           Propogate Textures\n" \
  82. "CTRL-SHIFT-P     Propogate Textures on Selected segments\n" \
  83. "CTRL-SHIFT-S     Advance to segment opposite Curside\n" \
  84. "CTRL-F           Select next side\n" \
  85. "CTRL-SHIFT-F     Select previous side\n";
  86.  
  87. static char KeyPadHelpText[] = "MED KeyPad Functions\n\n" \
  88.  
  89. "SHIFT-KEYPAD FUNCTIONS (Change direction vector of segment)\n" \
  90. "----------------------\n" \
  91. "(7)                  8 Decrease Pitch   (9)\n" \
  92. " 4 Decrease Heading (5)                  6 Increase Heading\n" \
  93. " 1 Decrease Bank     2 Increase Pitch    3 Increase Bank\n\n" \
  94.  
  95. "CTRL-KEYPAD FUNCTIONS (Change size/shape of segment)\n" \
  96. "---------------------\n" \
  97. "(7)                  8 Increase Length   9 Increase Height\n" \
  98. " 4 Decrease Width   (5)                  6 Increase Width\n" \
  99. "(1)                  2 Decrease Length   3 Decrease Height\n"\
  100. "\nIn addition, CTRL-SHIFT-KEYPAD Changes size at x5 rate as above\n";
  101.  
  102.  
  103. char ViewHelpText[] = "MED View Changing Functions\n\n" \
  104. "ALT-V            Change to orthogonal view (1,2,3)\n" \
  105. "CTRL-V           Toggle view to current segment\n" \
  106. "MINUS (-)        Zoom in\n" \
  107. "EQUAL (=)        Zoom out\n" \
  108. "SHIFT-MINUS      Decrease viewer distance\n" \
  109. "SHIFT-EQUAL      Increase viewer distance\n" \
  110. "\n* Holding the Ctrl key and moving the mouse will change\n" \
  111. "the viewer's orientation in the main window.";
  112.  
  113. //"CTRL-MINUS       Decreases drawing depth\n" \
  114. //"CTRL-EQUAL       Increases drawing depth\n" \
  115.  
  116. static char GameHelpText[] = "MED Game Screen Functions\n\n" \
  117. "KEYPAD FUNCTIONS (Moves in game screen)\n" \
  118. "----------------\n" \
  119. "(7)                  8 Move Forward     (9)\n" \
  120. " 4 Decrease Heading  5 Complete Stop     6 Increase Heading\n" \
  121. " 1 Decrease Bank     2 Move Backward     3 Increase Bank\n\n" \
  122. "[                Decreases Pitch\n" \
  123. "]                Increases Pitch\n" \
  124. "C                Set Player from Current segment\n" \
  125. "L                Toggle Lock Step\n" \
  126. "O                Toggle Outline Mode\n" \
  127. "SHIFT-C          Set PLayer from Current segment-1\n" \
  128. "SHIFT-L          Toggle Lighting effect\n" \
  129. "NUMLOCK          Reset orientation\n" \
  130. "PAD DIVIDE (/)   Game Zoom out\n" \
  131. "PAD MULTIPLY (*) Game Zoom In\n";
  132.  
  133. static char CurveHelpText[] = "MED Curve Generation Functions\n\n" \
  134. "ALT-F10          Generate curve\n" \
  135. "F8               Delete curve\n" \
  136. "F11              'Set' curve\n" \
  137. "F9               Decrease r1 vector\n" \
  138. "SHIFT-F9         Increase r1 vector\n" \
  139. "F10              Decrease r4 vector\n" \
  140. "SHIFT-F10        Increase r4 vector\n";
  141.  
  142. static char MacrosHelpText[] = "MED Macros Functions\n\n" \
  143. "CTRL-INSERT      Play fast\n" \
  144. "CTRL-DELETE      Play normal\n" \
  145. "CTRL-HOME        Record all\n" \
  146. "CTRL-END         Record keys\n" \
  147. "CTRL-PAGEUP      Save Macro\n" \
  148. "CTRL-PAGEDOWN    Load Macro\n";
  149.  
  150. int DoHelp()
  151. {
  152.     int help_key = 2;
  153.     int more_key = 2;
  154.     while (help_key > 1)
  155.     {
  156.         help_key = MessageBox( -2, -2, 5, MainHelpText, "Ok", "Segment", "Keypad", "View", "More");
  157.         if (help_key == 2)
  158.             MessageBox( -2, -2, 1, SegmentHelpText, "Ok" );
  159.         if (help_key == 3)
  160.             MessageBox( -2, -2, 1, KeyPadHelpText, "Ok" );
  161.         if (help_key == 4)
  162.             MessageBox( -2, -2, 1, ViewHelpText, "Ok" );
  163.         if (help_key == 5) {
  164.             more_key = MessageBox( -2, -2, 4, MainHelpText, "Back", "Curve", "Macro", "Game");
  165.                 if (more_key == 2)
  166.                     MessageBox( -2, -2, 1, CurveHelpText, "Ok" );
  167.                 if (help_key == 3)
  168.                     MessageBox( -2, -2, 1, MacrosHelpText, "Ok" );
  169.                 if (help_key == 4)
  170.                     MessageBox( -2, -2, 1, GameHelpText, "Ok" );
  171.         }
  172.     }
  173.     return 1;
  174. }
  175.