RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.59
diff -u -r1.59 dialogs.cpp
|
|
|
599 | 599 | }; |
600 | 600 | |
601 | 601 | HelpDialog::HelpDialog(NewGui *gui, Scumm *scumm) |
602 | | : ScummDialog(gui, scumm, 15, 10, 290, 184) { |
| 602 | : ScummDialog(gui, scumm, 0, 0, 320, 200) { |
603 | 603 | |
604 | 604 | _page = 1; |
605 | 605 | _numPages = ScummHelp::numPages(scumm->_gameId); |
606 | 606 | |
607 | | _prevButton = addPushButton(10, 160, "Previous", kPrevCmd, 'P'); |
608 | | _nextButton = addPushButton(90, 160, "Next", kNextCmd, 'N'); |
609 | | addButton(210, 160, "Close", kCloseCmd, 'C'); |
| 607 | _prevButton = addPushButton(10, 180, "Previous", kPrevCmd, 'P'); |
| 608 | _nextButton = addPushButton(90, 180, "Next", kNextCmd, 'N'); |
| 609 | addButton(210, 180, "Close", kCloseCmd, 'C'); |
610 | 610 | _prevButton->clearFlags(WIDGET_ENABLED); |
611 | 611 | |
612 | | _title = new StaticTextWidget(this, 10, 5, 270, 16, "", kTextAlignCenter); |
| 612 | _title = new StaticTextWidget(this, 10, 5, 300, 16, "", kTextAlignCenter); |
613 | 613 | for (int i = 0; i < HELP_NUM_LINES; i++) { |
614 | 614 | _key[i] = new StaticTextWidget(this, 10, 20 + (10 * i), 80, 16, "", kTextAlignLeft); |
615 | | _dsc[i] = new StaticTextWidget(this, 90, 20 + (10 * i), 190, 16, "", kTextAlignLeft); |
| 615 | _dsc[i] = new StaticTextWidget(this, 90, 20 + (10 * i), 220, 16, "", kTextAlignLeft); |
616 | 616 | } |
617 | 617 | |
618 | 618 | displayKeyBindings(); |
619 | 619 | } |
620 | 620 | |
621 | 621 | void HelpDialog::displayKeyBindings() { |
| 622 | |
622 | 623 | String titleStr, *keyStr, *dscStr; |
623 | 624 | |
624 | 625 | ScummHelp::updateStrings(_scumm->_gameId, _scumm->_version, _page, titleStr, keyStr, dscStr); |
… |
… |
|
634 | 635 | } |
635 | 636 | |
636 | 637 | void HelpDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { |
| 638 | |
637 | 639 | switch (cmd) { |
638 | 640 | case kNextCmd: |
639 | 641 | _page++; |
RCS file: /cvsroot/scummvm/scummvm/scumm/help.h,v
retrieving revision 1.2
diff -u -r1.2 help.h
|
|
|
22 | 22 | |
23 | 23 | #include "common/str.h" |
24 | 24 | |
25 | | #define HELP_NUM_LINES 14 |
| 25 | #define HELP_NUM_LINES 15 |
26 | 26 | |
27 | 27 | class ScummHelp { |
28 | 28 | protected: |
… |
… |
|
30 | 30 | |
31 | 31 | public: |
32 | 32 | static int numPages(byte gameId); |
33 | | static void updateStrings(byte gameId, byte version, int page, String &title, |
34 | | String *&key, String *&dsc); |
| 33 | static void updateStrings(byte gameId, byte version, int page, |
| 34 | String &title, String *&key, String *&dsc); |
35 | 35 | }; |
36 | 36 | |
37 | 37 | #endif |
RCS file: /cvsroot/scummvm/scummvm/scumm/help.cpp,v
retrieving revision 1.4
diff -u -r1.4 help.cpp
|
|
|
37 | 37 | case GID_LOOM256: |
38 | 38 | case GID_MONKEY_EGA: |
39 | 39 | case GID_MONKEY_VGA: |
| 40 | case GID_MONKEY_SEGA: |
40 | 41 | case GID_MONKEY: |
41 | 42 | case GID_MONKEY2: |
42 | 43 | case GID_INDY4: |
… |
… |
|
49 | 50 | break; |
50 | 51 | /* TODO - I don't know the controls for these games |
51 | 52 | case GID_PUTTDEMO: |
| 53 | case GID_PUTTPUTT: |
52 | 54 | */ |
53 | 55 | default: |
54 | 56 | return 2; |
… |
… |
|
59 | 61 | #define ADD_TEXT(d) ADD_BIND("",d) |
60 | 62 | #define ADD_LINE ADD_BIND("","") |
61 | 63 | |
62 | | void ScummHelp::updateStrings(byte gameId, byte version, int page, String &title, |
63 | | String *&key, String *&dsc) { |
| 64 | void ScummHelp::updateStrings(byte gameId, byte version, int page, |
| 65 | String &title, String *&key, String *&dsc) { |
64 | 66 | key = new String[HELP_NUM_LINES]; |
65 | 67 | dsc = new String[HELP_NUM_LINES]; |
66 | 68 | int i = 0; |
… |
… |
|
75 | 77 | ADD_BIND("Ctrl 0-9", "Load game state 1-10"); |
76 | 78 | ADD_BIND("Alt 0-9", "Save game state 1-10"); |
77 | 79 | #ifdef MACOSX |
78 | | ADD_BIND("Alt x, Ctrl z", "Quit"); |
79 | | #else |
80 | 80 | ADD_BIND("Cmd q", "Quit"); |
| 81 | #else |
| 82 | ADD_BIND("Alt x, Ctrl z", "Quit"); |
81 | 83 | #endif |
82 | 84 | ADD_BIND("Alt Enter", "Toggle fullscreen"); |
83 | 85 | ADD_BIND("[, ]", "Music volume up / down"); |
… |
… |
|
91 | 93 | ADD_BIND("~, #", "Show / Hide console"); |
92 | 94 | ADD_BIND("Ctrl d", "Start the debugger"); |
93 | 95 | ADD_BIND("Ctrl s", "Show memory consumption"); |
94 | | ADD_BIND("Ctrl f", "Run in fast mode *"); |
95 | | ADD_BIND("Ctrl g", "Run in really fast mode *"); |
| 96 | ADD_BIND("Ctrl f", "Run in fast mode (*)"); |
| 97 | ADD_BIND("Ctrl g", "Run in really fast mode (*)"); |
96 | 98 | ADD_BIND("Ctrl Alt 0-9", "Set graphics filter"); |
97 | | ADD_LINE; |
| 99 | ADD_BIND("Ctrl Alt a", "Toggle aspect-ratio correction"); |
| 100 | ADD_BIND("Ctrl Alt b", "Toggle bilinear filtering [OpenGL]"); |
98 | 101 | ADD_LINE; |
99 | 102 | ADD_LINE; |
100 | 103 | ADD_LINE; |
101 | 104 | ADD_TEXT("* Note that using ctrl-f and"); |
102 | | ADD_TEXT("ctrl-g are not recommended"); |
103 | | ADD_TEXT("since they may cause crashes"); |
104 | | ADD_TEXT("or incorrect game behaviour."); |
| 105 | ADD_TEXT(" ctrl-g are not recommended"); |
| 106 | ADD_TEXT(" since they may cause crashes"); |
| 107 | ADD_TEXT(" or incorrect game behaviour."); |
105 | 108 | break; |
106 | 109 | case 3: |
107 | 110 | if (gameId == GID_LOOM || gameId == GID_LOOM256) |
… |
… |
|
121 | 124 | ADD_BIND("e", "Walk to"); |
122 | 125 | ADD_BIND("d", "Pick up"); |
123 | 126 | ADD_BIND("c", "What is"); |
124 | | if (gameId == GID_ZAK || gameId == GID_ZAK256) { |
125 | | ADD_BIND("r", "Put on"); |
126 | | ADD_BIND("f", "Take off"); |
127 | | } else { |
| 127 | if (gameId == GID_MANIAC) { |
128 | 128 | ADD_BIND("r", "New kid"); |
129 | 129 | ADD_BIND("f", "Unlock"); |
| 130 | } else { |
| 131 | ADD_BIND("r", "Put on"); |
| 132 | ADD_BIND("f", "Take off"); |
130 | 133 | } |
131 | 134 | ADD_BIND("v", "Use"); |
132 | 135 | ADD_BIND("t", "Turn on"); |
133 | 136 | ADD_BIND("g", "Turn off"); |
| 137 | if (gameId == GID_MANIAC) |
| 138 | ADD_BIND("b", "Fix"); |
| 139 | else |
| 140 | ADD_BIND("b", "Switch"); |
134 | 141 | break; |
135 | 142 | case GID_INDY3: |
136 | 143 | case GID_INDY3_256: |
… |
… |
|
148 | 155 | ADD_BIND("v", "Turn off"); |
149 | 156 | ADD_BIND("t", "Talk"); |
150 | 157 | ADD_BIND("g", "Travel"); |
| 158 | ADD_BIND("b", "To Henry / To Indy"); |
151 | 159 | break; |
152 | 160 | case GID_LOOM: |
153 | 161 | case GID_LOOM256: |
… |
… |
|
162 | 170 | break; |
163 | 171 | case GID_MONKEY_EGA: |
164 | 172 | case GID_MONKEY_VGA: |
| 173 | case GID_MONKEY_SEGA: |
165 | 174 | ADD_BIND("o", "Open"); |
166 | 175 | ADD_BIND("c", "Close"); |
167 | 176 | ADD_BIND("s", "puSh"); |
… |
… |
|
225 | 234 | switch (gameId) { |
226 | 235 | case GID_MANIAC: |
227 | 236 | case GID_ZAK: |
228 | | case GID_ZAK256: |
229 | | title = "Main game controls:"; |
230 | | if (gameId == GID_ZAK || gameId == GID_ZAK256) { |
231 | | ADD_BIND("b", "Switch"); |
232 | | } else { |
233 | | ADD_BIND("b", "Fix"); |
234 | | } |
235 | | ADD_LINE; |
236 | | ADD_TEXT("Inventory Controls (not implemented):"); |
| 237 | title = "Other game controls:"; |
| 238 | ADD_TEXT("Inventory: (not yet implemented)"); |
237 | 239 | ADD_BIND("u", "Scroll list up"); |
238 | 240 | ADD_BIND("j", "Scroll list down"); |
239 | 241 | ADD_BIND("i", "Upper left item"); |
240 | 242 | ADD_BIND("k", "Lower left item"); |
241 | 243 | ADD_BIND("o", "Upper right item"); |
242 | 244 | ADD_BIND("l", "Lower right item"); |
| 245 | ADD_LINE; |
| 246 | ADD_TEXT("Switching characters:"); |
| 247 | if (gameId == GID_MANIAC) { |
| 248 | ADD_BIND("F1", "Dave"); |
| 249 | ADD_BIND("F2", "Second kid"); |
| 250 | ADD_BIND("F3", "Third kid"); |
| 251 | } else { |
| 252 | ADD_BIND("F1", "Zak"); |
| 253 | ADD_BIND("F2", "Annie"); |
| 254 | ADD_BIND("F3", "Melissa"); |
| 255 | ADD_BIND("F4", "Leslie"); |
| 256 | } |
243 | 257 | break; |
244 | 258 | case GID_INDY3: |
| 259 | case GID_ZAK256: |
245 | 260 | case GID_INDY3_256: |
246 | | title = "Main game controls:"; |
247 | | ADD_BIND("b", "To Henry / To Indy"); |
248 | | ADD_LINE; |
249 | | ADD_TEXT("Inventory Controls:"); |
| 261 | title = "Other game controls:"; |
| 262 | ADD_TEXT("Inventory:"); |
250 | 263 | ADD_BIND("y", "Upper left item"); |
251 | 264 | ADD_BIND("h", "Middle left item"); |
252 | 265 | ADD_BIND("n", "Lower left item"); |
… |
… |
|
255 | 268 | ADD_BIND("m", "Lower right item"); |
256 | 269 | ADD_BIND("o", "Scroll list up"); |
257 | 270 | ADD_BIND("l", "Scroll list down"); |
| 271 | if (gameId == GID_ZAK256) { |
| 272 | ADD_LINE; |
| 273 | ADD_TEXT("Switching characters:"); |
| 274 | ADD_BIND("F1", "Zak"); |
| 275 | ADD_BIND("F2", "Annie"); |
| 276 | ADD_BIND("F3", "Melissa"); |
| 277 | ADD_BIND("F4", "Leslie"); |
| 278 | } |
258 | 279 | break; |
259 | 280 | } |
260 | 281 | break; |
… |
… |
|
272 | 293 | ADD_BIND("9", "Punch high"); |
273 | 294 | ADD_BIND("6", "Punch middle"); |
274 | 295 | ADD_BIND("3", "Punch low"); |
| 296 | ADD_LINE; |
275 | 297 | ADD_LINE; |
276 | 298 | ADD_TEXT("These are for Indy on left."); |
277 | 299 | ADD_TEXT("When Indy is on the right,"); |