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

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