KHELP.C 6.0 KB

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