292 HMENU menu = CreateMenu();
294 HMENU file = CreatePopupMenu();
295 AppendMenuW(menu, MF_ENABLED | MF_STRING | MF_POPUP, (UINT_PTR)file,
298 AppendMenuW(file, MF_ENABLED | MF_STRING, 40001, L
"Exit");
299 AppendMenuW(file, MF_ENABLED | MF_STRING, 40002,
303 HMENU debug = CreatePopupMenu();
304 AppendMenuW(menu, MF_ENABLED | MF_STRING | MF_POPUP, (UINT_PTR)debug,
307 HMENU debug_party = CreatePopupMenu();
308 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP,
309 (UINT_PTR)debug_party, L
"&Party");
311 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40007,
312 L
"Give Gold (10 000)");
313 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40008,
314 L
"Give Exp (20 000)");
315 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40059,
316 L
"Give Skills (50 each)");
317 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40060,
319 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40013,
322 HMENU debug_party_setconditions = CreatePopupMenu();
323 AppendMenuW(debug_party, MF_ENABLED | MF_STRING | MF_POPUP,
324 (UINT_PTR)debug_party_setconditions,
327 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40044, L
"Afraid");
328 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40043, L
"Asleep");
329 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40037, L
"Curse");
330 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40036, L
"Disease Weak");
331 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40035, L
"Disease Medium");
332 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40034, L
"Disease Severe");
333 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40041, L
"Dead");
334 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40039, L
"Drunk");
335 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40042, L
"Eradicated");
336 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40038, L
"Insane");
337 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40045, L
"Paralyzed");
338 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40033, L
"Poison Weak");
339 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40032, L
"Poison Medium");
340 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40031, L
"Poison Severe");
341 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40029, L
"&Stone");
342 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40040, L
"Unconscious");
343 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40030, L
"Weak");
344 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40073, L
"Zombie");
345 AppendMenuW(debug_party_setconditions, MF_ENABLED | MF_STRING, 40046, L
"Good");
348 AppendMenuW(debug_party, MF_ENABLED | MF_STRING, 40006, L
"Set Food (20)");
350 HMENU debug_party_alignment = CreatePopupMenu();
351 AppendMenuW(debug_party, MF_ENABLED | MF_STRING | MF_POPUP, (UINT_PTR)debug_party_alignment, L
"Alignment");
353 AppendMenuW(debug_party_alignment, MF_ENABLED | MF_STRING, 40062, L
"Good");
354 AppendMenuW(debug_party_alignment, MF_ENABLED | MF_STRING | MF_CHECKED, 40063, L
"Neutral");
355 AppendMenuW(debug_party_alignment, MF_ENABLED | MF_STRING, 40064, L
"Evil");
358 AppendMenuW(debug, MF_ENABLED | MF_STRING, 40122, L
"Actors off");
359 HMENU debug_time = CreatePopupMenu();
360 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP, (UINT_PTR)debug_time, L
"&Time");
362 AppendMenuW(debug_time, MF_ENABLED | MF_STRING, 40009, L
"Add 1 Day");
363 AppendMenuW(debug_time, MF_ENABLED | MF_STRING, 40010, L
"Add 1 Week");
364 AppendMenuW(debug_time, MF_ENABLED | MF_STRING, 40011, L
"Add 1 Month");
365 AppendMenuW(debug_time, MF_ENABLED | MF_STRING, 40012, L
"Add 1 Year");
368 HMENU debug_items = CreatePopupMenu();
369 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP,
370 (UINT_PTR)debug_items, L
"&Items");
372 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40015, L
"Generate level &1 item");
373 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40016, L
"Generate level &2 item");
374 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40017, L
"Generate level &3 item");
375 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40018, L
"Generate level &4 item");
376 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40019, L
"Generate level &5 item");
377 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40020, L
"Generate level &6 item");
378 AppendMenuW(debug_items, MF_ENABLED | MF_STRING, 40061, L
"Generate special item");
381 HMENU debug_graphics = CreatePopupMenu();
382 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP,
383 (UINT_PTR)debug_graphics, L
"&Graphics");
385 HMENU lights_off = CreatePopupMenu();
386 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_POPUP,
387 (UINT_PTR)lights_off, L
"Lights");
389 AppendMenuW(lights_off, MF_ENABLED | MF_STRING, 40123, L
"Lights on");
390 AppendMenuW(lights_off, MF_ENABLED | MF_STRING, 40124, L
"Lights off");
393 HMENU debug_lights = CreatePopupMenu();
394 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_POPUP,
395 (UINT_PTR)debug_lights, L
"Debug Lights");
397 AppendMenuW(debug_lights, MF_ENABLED | MF_STRING, 40125, L
"Debug lights on");
398 AppendMenuW(debug_lights, MF_ENABLED | MF_STRING, 40126, L
"Debug lights off");
401 HMENU debug_terrain = CreatePopupMenu();
402 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_POPUP,
403 (UINT_PTR)debug_terrain,
406 AppendMenuW(debug_terrain, MF_ENABLED | MF_STRING, 40127, L
"Debug Terrain on");
407 AppendMenuW(debug_terrain, MF_ENABLED | MF_STRING, 40128, L
"Debug Terrain off");
409 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40023, L
"Lighting Mode");
410 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40024, L
"Lighting Geometry");
414 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40105, L
"Colored Lights");
415 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40101, L
"Debug Decals");
416 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40027, L
"HWID Portals");
417 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40047, L
"SWID Portals");
418 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40051, L
"OD Frustum");
419 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40054, L
"SWOD Constant Redraw");
420 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40055, L
"SWOD Lit Rasterizer");
421 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40056, L
"Party Light off");
422 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40060, L
"SWOD Nice Lighting off");
423 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40067, L
"HWOD Additive Fog Lights");
424 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40072, L
"HWID Nice Lighting");
425 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40048, L
"Wireframe");
426 AppendMenuW(debug_graphics, MF_ENABLED | MF_STRING | MF_GRAYED, 40049, L
"Fog");
429 HMENU debug_misc = CreatePopupMenu();
430 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP,
431 (UINT_PTR)debug_misc, L
"&Misc");
433 AppendMenuW(debug_misc, MF_ENABLED | MF_STRING | MF_GRAYED, 40066, L
"Object Viewcone Culling");
434 AppendMenuW(debug_misc, MF_ENABLED | MF_STRING | MF_GRAYED, 40068, L
"Red Tint");
435 AppendMenuW(debug_misc, MF_ENABLED | MF_STRING | MF_GRAYED, 40071, L
"Display Secrets");
436 AppendMenuW(debug_misc, MF_ENABLED | MF_STRING | MF_GRAYED, 40102, L
"Massive Bloodsplat");
437 AppendMenuW(debug_misc, MF_ENABLED | MF_STRING | MF_GRAYED, 40103, L
"Underwater Gravity");
440 HMENU debug_eax = CreatePopupMenu();
441 AppendMenuW(debug, MF_ENABLED | MF_STRING | MF_POPUP,
442 (UINT_PTR)debug_eax, L
"EAX Environs");
444 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40074, L
"NONE");
445 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40075, L
"GENERIC");
446 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40076, L
"PADDEDCELL");
447 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40077, L
"ROOM");
448 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40078, L
"BATHROOM");
449 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40079, L
"LIVINGROOM");
450 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40080, L
"STONEROOM");
451 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40081, L
"AUDITORIUM");
452 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40082, L
"CONCERTHALL");
453 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40083, L
"CAVE");
454 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40084, L
"ARENA");
455 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40085, L
"HANGAR");
456 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40086, L
"CARPETEDHALLWAY");
457 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40087, L
"HALLWAY");
458 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40088, L
"STONECORRIDOR");
459 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40089, L
"ALLEY");
460 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40090, L
"FOREST");
461 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40091, L
"CITY");
462 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40092, L
"MOUNTAINS");
463 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40093, L
"QUARRY");
464 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40094, L
"PLAIN");
465 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40095, L
"PARKINGLOT");
466 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40096, L
"SEWERPIPE");
467 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40097, L
"UNDERWATER");
468 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40098, L
"DRUGGED");
469 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40099, L
"DIZZY");
470 AppendMenuW(debug_eax, MF_ENABLED | MF_STRING | MF_GRAYED, 40100, L
"PSICHOTIC");
473 HMENU other = CreatePopupMenu();
474 AppendMenuW(menu, MF_ENABLED | MF_STRING | MF_POPUP, (UINT_PTR)other,
477 HMENU other_wizard_eye = CreatePopupMenu();
478 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
479 (UINT_PTR)other_wizard_eye, L
"Wizard eye");
481 AppendMenuW(other_wizard_eye, MF_ENABLED | MF_STRING, 40101, L
"Wizard eye on");
482 AppendMenuW(other_wizard_eye, MF_ENABLED | MF_STRING, 40102, L
"Wizard eye off");
485 HMENU other_new_draw_object_dist = CreatePopupMenu();
486 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
487 (UINT_PTR)other_new_draw_object_dist,
488 L
"New draw object distance");
490 AppendMenuW(other_new_draw_object_dist, MF_ENABLED | MF_STRING, 40103, L
"New draw object dist on");
491 AppendMenuW(other_new_draw_object_dist, MF_ENABLED | MF_STRING, 40104, L
"New draw object dist off");
494 HMENU other_change_seasons = CreatePopupMenu();
495 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
496 (UINT_PTR)other_change_seasons, L
"Change seasons");
498 AppendMenuW(other_change_seasons, MF_ENABLED | MF_STRING, 40105, L
"Change seasons on");
499 AppendMenuW(other_change_seasons, MF_ENABLED | MF_STRING, 40106, L
"Change seasons off");
502 HMENU other_all_magic = CreatePopupMenu();
503 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
504 (UINT_PTR)other_all_magic, L
"All magic");
506 AppendMenuW(other_all_magic, MF_ENABLED | MF_STRING, 40107, L
"All magic on");
507 AppendMenuW(other_all_magic, MF_ENABLED | MF_STRING, 40108, L
"All magic off");
510 HMENU other_debug_information = CreatePopupMenu();
511 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
512 (UINT_PTR)other_debug_information,
513 L
"Debug information");
515 AppendMenuW(other_debug_information, MF_ENABLED | MF_STRING, 40109, L
"Debug information on");
516 AppendMenuW(other_debug_information, MF_ENABLED | MF_STRING, 40110, L
"Debug information off");
519 HMENU other_show_picked_face = CreatePopupMenu();
520 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
521 (UINT_PTR)other_show_picked_face, L
"Show picked face");
523 AppendMenuW(other_show_picked_face, MF_ENABLED | MF_STRING, 40111, L
"Show picked face on");
524 AppendMenuW(other_show_picked_face, MF_ENABLED | MF_STRING, 40112, L
"Show picked face off");
527 HMENU other_draw_portals_loops = CreatePopupMenu();
528 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
529 (UINT_PTR)other_draw_portals_loops,
530 L
"Draw portals loops");
532 AppendMenuW(other_draw_portals_loops, MF_ENABLED | MF_STRING, 40113, L
"Draw portals loops on");
533 AppendMenuW(other_draw_portals_loops, MF_ENABLED | MF_STRING, 40114, L
"Draw portals loops off");
536 HMENU other_new_speed = CreatePopupMenu();
537 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
538 (UINT_PTR)other_new_speed, L
"New_speed");
540 AppendMenuW(other_new_speed, MF_ENABLED | MF_STRING, 40115, L
"New_speed on");
541 AppendMenuW(other_new_speed, MF_ENABLED | MF_STRING, 40116, L
"New_speed off");
544 HMENU other_snow = CreatePopupMenu();
545 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
546 (UINT_PTR)other_snow, L
"Snow");
548 AppendMenuW(other_snow, MF_ENABLED | MF_STRING, 40117, L
"Snowfall on");
549 AppendMenuW(other_snow, MF_ENABLED | MF_STRING, 40118, L
"Snowfall off");
552 HMENU other_draw_terrain_dist_mist = CreatePopupMenu();
553 AppendMenuW(other, MF_ENABLED | MF_STRING | MF_POPUP,
554 (UINT_PTR)other_draw_terrain_dist_mist,
555 L
"New draw terrain distance");
557 AppendMenuW(other_draw_terrain_dist_mist, MF_ENABLED | MF_STRING, 40119, L
"New draw terrain distance on");
558 AppendMenuW(other_draw_terrain_dist_mist, MF_ENABLED | MF_STRING, 40120, L
"New draw terrain distance off");