1 static struct NewScreen NewScreenStructure = { 2 0,0, 3 640,200, 4 2, 5 0,2, 6 HIRES, 7 CUSTOMSCREEN, 8 NULL, 9 "NetHack WorkBench V3.1", 10 NULL, 11 NULL 12 }; 13 14 #define NEWSCREENSTRUCTURE NewScreenStructure 15 16 static USHORT Palette[] = { 17 0x0AAA, 18 0x0002, 19 0x0FFF, 20 0x016A 21 #define PaletteColorCount 4 22 }; 23 24 #define PALETTE Palette 25 26 static UBYTE UNDOBUFFER[300]; 27 28 static SHORT BorderVectors1[] = { 29 0,0, 30 566,0 31 }; 32 static struct Border Border1 = { 33 -1,11, 34 2,0,JAM1, 35 2, 36 BorderVectors1, 37 NULL 38 }; 39 40 static struct IntuiText IText1 = { 41 3,0,JAM2, 42 6,1, 43 NULL, 44 " ", 45 NULL 46 }; 47 48 static struct Gadget Message = { 49 NULL, 50 5,12, 51 -26,10, 52 GADGHBOX+GADGHIMAGE+GRELWIDTH, 53 RELVERIFY, 54 BOOLGADGET, 55 (APTR)&Border1, 56 NULL, 57 &IText1, 58 NULL, 59 NULL, 60 -1, 61 NULL 62 }; 63 64 static struct PropInfo ScrollSInfo = { 65 AUTOKNOB+FREEHORIZ, 66 -1,-1, 67 -1,-1, 68 }; 69 70 static struct Image Image1 = { 71 0,0, 72 531,2, 73 0, 74 NULL, 75 0x0000,0x0000, 76 NULL 77 }; 78 79 static struct Gadget Scroll = { 80 &Message, 81 5,-7, 82 -26,6, 83 GRELBOTTOM+GRELWIDTH, 84 RELVERIFY+GADGIMMEDIATE+FOLLOWMOUSE+BOTTOMBORDER, 85 PROPGADGET, 86 (APTR)&Image1, 87 NULL, 88 NULL, 89 NULL, 90 (APTR)&ScrollSInfo, 91 GADSCROLL, 92 NULL 93 }; 94 95 #define GadgetList1 Scroll 96 97 static struct IntuiText IText2 = { 98 3,1,COMPLEMENT, 99 0,0, 100 NULL, 101 "Rename", 102 NULL 103 }; 104 105 static struct MenuItem MenuItem4 = { 106 NULL, 107 0,24, 108 103,8, 109 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 110 0, 111 (APTR)&IText2, 112 NULL, 113 'N', 114 NULL, 115 MENUNULL 116 }; 117 118 static struct IntuiText IText3 = { 119 3,1,COMPLEMENT, 120 0,0, 121 NULL, 122 "Discard", 123 NULL 124 }; 125 126 static struct MenuItem MenuItem3 = { 127 &MenuItem4, 128 0,16, 129 103,8, 130 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 131 0, 132 (APTR)&IText3, 133 NULL, 134 'D', 135 NULL, 136 MENUNULL 137 }; 138 139 static struct IntuiText IText4 = { 140 3,1,COMPLEMENT, 141 0,0, 142 NULL, 143 "Copy Info", 144 NULL 145 }; 146 147 static struct MenuItem MenuItem2 = { 148 &MenuItem3, 149 0,8, 150 103,8, 151 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 152 0, 153 (APTR)&IText4, 154 NULL, 155 'C', 156 NULL, 157 MENUNULL 158 }; 159 160 static struct IntuiText IText5 = { 161 3,1,COMPLEMENT, 162 0,0, 163 NULL, 164 "Info", 165 NULL 166 }; 167 168 static struct MenuItem MenuItem1 = { 169 &MenuItem2, 170 0,0, 171 103,8, 172 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 173 0, 174 (APTR)&IText5, 175 NULL, 176 'I', 177 NULL, 178 MENUNULL 179 }; 180 181 static struct Menu Menu2 = { 182 NULL, 183 63,0, 184 35,0, 185 MENUENABLED, 186 "Game", 187 &MenuItem1 188 }; 189 190 static struct IntuiText IText6 = { 191 3,1,COMPLEMENT, 192 0,0, 193 NULL, 194 "Quit", 195 NULL 196 }; 197 198 static struct MenuItem MenuItem10 = { 199 NULL, 200 0,40, 201 166,8, 202 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 203 0, 204 (APTR)&IText6, 205 NULL, 206 'Q', 207 NULL, 208 MENUNULL 209 }; 210 211 static struct IntuiText IText7 = { 212 3,1,COMPLEMENT, 213 0,0, 214 NULL, 215 "Edit Configuration", 216 NULL 217 }; 218 219 static struct MenuItem MenuItem9 = { 220 &MenuItem10, 221 0,32, 222 166,8, 223 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 224 0, 225 (APTR)&IText7, 226 NULL, 227 'E', 228 NULL, 229 MENUNULL 230 }; 231 232 static struct IntuiText IText8 = { 233 3,1,COMPLEMENT, 234 0,0, 235 NULL, 236 "Recover", 237 NULL 238 }; 239 240 static struct MenuItem MenuItem8 = { 241 &MenuItem9, 242 0,24, 243 166,8, 244 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 245 0, 246 (APTR)&IText8, 247 NULL, 248 'R', 249 NULL, 250 MENUNULL 251 }; 252 253 static struct IntuiText IText9 = { 254 3,1,COMPLEMENT, 255 0,0, 256 NULL, 257 "Top Scores", 258 NULL 259 }; 260 261 static struct MenuItem MenuItem7 = { 262 &MenuItem8, 263 0,16, 264 166,8, 265 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 266 0, 267 (APTR)&IText9, 268 NULL, 269 'S', 270 NULL, 271 MENUNULL 272 }; 273 274 static struct IntuiText IText10 = { 275 3,1,COMPLEMENT, 276 0,0, 277 NULL, 278 "About", 279 NULL 280 }; 281 282 static struct MenuItem MenuItem6 = { 283 &MenuItem7, 284 0,8, 285 166,8, 286 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 287 0, 288 (APTR)&IText10, 289 NULL, 290 'A', 291 NULL, 292 MENUNULL 293 }; 294 295 static struct IntuiText IText11 = { 296 3,1,COMPLEMENT, 297 0,0, 298 NULL, 299 "Help", 300 NULL 301 }; 302 303 static struct MenuItem MenuItem5 = { 304 &MenuItem6, 305 0,0, 306 166,8, 307 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 308 0, 309 (APTR)&IText11, 310 NULL, 311 'H', 312 NULL, 313 MENUNULL 314 }; 315 316 static struct Menu Menu1 = { 317 &Menu2, 318 0,0, 319 56,0, 320 MENUENABLED, 321 "Project", 322 &MenuItem5 323 }; 324 325 #define MenuList1 Menu1 326 327 static struct NewWindow NewWindowStructure1 = { 328 40,15, 329 565,148, 330 0,2, 331 NEWSIZE+MOUSEBUTTONS+MOUSEMOVE+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW+RAWKEY+DISKINSERTED, 332 WINDOWSIZING+WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+SIZEBRIGHT+SIZEBBOTTOM+ACTIVATE+NOCAREREFRESH, 333 &Scroll, 334 NULL, 335 "Select Saved Game or New Game", 336 NULL, 337 NULL, 338 170,80, 339 -1,-1, 340 CUSTOMSCREEN 341 }; 342 343 static SHORT Quest_BorderVectors2[] = { 344 0,0, 345 275,0, 346 275,22, 347 0,22, 348 0,0 349 }; 350 static struct Border Quest_Border2 = { 351 -1,-1, 352 3,0,JAM1, 353 5, 354 Quest_BorderVectors2, 355 NULL 356 }; 357 358 static struct Gadget Quest_Borders2 = { 359 NULL, 360 12,16, 361 274,21, 362 GADGHBOX+GADGHIMAGE, 363 NULL, 364 BOOLGADGET, 365 (APTR)&Quest_Border2, 366 NULL, 367 NULL, 368 NULL, 369 NULL, 370 -1, 371 NULL 372 }; 373 374 static SHORT Quest_BorderVectors3[] = { 375 0,0, 376 88,0, 377 88,12, 378 0,12, 379 0,0 380 }; 381 static struct Border Quest_Border3 = { 382 -1,-1, 383 2,0,JAM1, 384 5, 385 Quest_BorderVectors3, 386 NULL 387 }; 388 389 static struct IntuiText Quest_IText12 = { 390 3,0,JAM2, 391 35,2, 392 NULL, 393 "No", 394 NULL 395 }; 396 397 static struct Gadget Quest_No = { 398 &Quest_Borders2, 399 199,43, 400 87,11, 401 NULL, 402 RELVERIFY, 403 BOOLGADGET, 404 (APTR)&Quest_Border3, 405 NULL, 406 &Quest_IText12, 407 NULL, 408 NULL, 409 GADQUESTNO, 410 NULL 411 }; 412 413 static SHORT Quest_BorderVectors4[] = { 414 0,0, 415 88,0, 416 88,12, 417 0,12, 418 0,0 419 }; 420 static struct Border Quest_Border4 = { 421 -1,-1, 422 2,0,JAM1, 423 5, 424 Quest_BorderVectors4, 425 NULL 426 }; 427 428 static struct IntuiText Quest_IText13 = { 429 3,0,JAM2, 430 32,2, 431 NULL, 432 "Yes", 433 NULL 434 }; 435 436 static struct Gadget Quest_Yes = { 437 &Quest_No, 438 12,43, 439 87,11, 440 NULL, 441 RELVERIFY, 442 BOOLGADGET, 443 (APTR)&Quest_Border4, 444 NULL, 445 &Quest_IText13, 446 NULL, 447 NULL, 448 GADQUESTYES, 449 NULL 450 }; 451 452 #define Quest_GadgetList2 Quest_Yes 453 454 static struct IntuiText Quest_IText14 = { 455 1,0,JAM2, 456 59,21, 457 NULL, 458 "Sure you want to QUIT?", 459 NULL 460 }; 461 462 #define Quest_IntuiTextList2 Quest_IText14 463 464 static struct NewWindow Quest_NewWindowStructure2 = { 465 174,60, 466 298,60, 467 0,3, 468 GADGETUP+CLOSEWINDOW+VANILLAKEY, 469 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 470 &Quest_Yes, 471 NULL, 472 "NetHack WorkBench Request", 473 NULL, 474 NULL, 475 5,5, 476 -1,-1, 477 CUSTOMSCREEN 478 }; 479 480 static SHORT Options_BorderVectors5[] = { 481 0,0, 482 72,0, 483 72,11, 484 0,11, 485 0,0 486 }; 487 static struct Border Options_Border5 = { 488 -1,-1, 489 3,0,JAM1, 490 5, 491 Options_BorderVectors5, 492 NULL 493 }; 494 495 static struct IntuiText Options_IText15 = { 496 3,0,JAM2, 497 15,1, 498 NULL, 499 "CANCEL", 500 NULL 501 }; 502 503 static struct Gadget Options_Gadget7 = { 504 NULL, 505 -96,-15, 506 71,10, 507 GRELBOTTOM+GRELRIGHT, 508 RELVERIFY, 509 BOOLGADGET, 510 (APTR)&Options_Border5, 511 NULL, 512 &Options_IText15, 513 NULL, 514 NULL, 515 GADOPTCANCEL, 516 NULL 517 }; 518 519 static SHORT Options_BorderVectors6[] = { 520 0,0, 521 72,0, 522 72,11, 523 0,11, 524 0,0 525 }; 526 static struct Border Options_Border6 = { 527 -1,-1, 528 3,0,JAM1, 529 5, 530 Options_BorderVectors6, 531 NULL 532 }; 533 534 static struct IntuiText Options_IText16 = { 535 3,0,JAM2, 536 21,1, 537 NULL, 538 "OKAY", 539 NULL 540 }; 541 542 static struct Gadget Options_Gadget6 = { 543 &Options_Gadget7, 544 13,-15, 545 71,10, 546 GRELBOTTOM, 547 RELVERIFY, 548 BOOLGADGET, 549 (APTR)&Options_Border6, 550 NULL, 551 &Options_IText16, 552 NULL, 553 NULL, 554 GADOPTOKAY, 555 NULL 556 }; 557 558 #define Options_GadgetList3 Options_Gadget6 559 560 static struct IntuiText Options_IText17 = { 561 3,1,COMPLEMENT, 562 0,0, 563 NULL, 564 "Cancel", 565 NULL 566 }; 567 568 static struct MenuItem Options_MenuItem12 = { 569 NULL, 570 0,8, 571 82,8, 572 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 573 0, 574 (APTR)&Options_IText17, 575 NULL, 576 'C', 577 NULL, 578 MENUNULL 579 }; 580 581 static struct IntuiText Options_IText18 = { 582 3,1,COMPLEMENT, 583 0,0, 584 NULL, 585 "Save", 586 NULL 587 }; 588 589 static struct MenuItem Options_MenuItem11 = { 590 &Options_MenuItem12, 591 0,0, 592 82,8, 593 ITEMTEXT+COMMSEQ+ITEMENABLED+HIGHCOMP, 594 0, 595 (APTR)&Options_IText18, 596 NULL, 597 'S', 598 NULL, 599 MENUNULL 600 }; 601 602 static struct Menu Options_Menu2 = { 603 NULL, 604 0,0, 605 56,0, 606 MENUENABLED, 607 "Project", 608 &Options_MenuItem11 609 }; 610 611 #define Options_MenuList3 Options_Menu2 612 613 static struct NewWindow Options_NewWindowStructure3 = { 614 0,21, 615 640,156, 616 0,1, 617 SIZEVERIFY+NEWSIZE+MOUSEBUTTONS+GADGETDOWN+GADGETUP+MENUPICK+CLOSEWINDOW+RAWKEY+DISKINSERTED+DISKREMOVED+ACTIVEWINDOW+VANILLAKEY, 618 WINDOWSIZING+WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 619 &Options_Gadget6, 620 NULL, 621 "Edit Options", 622 NULL, 623 NULL, 624 200,50, 625 -1,-1, 626 CUSTOMSCREEN 627 }; 628 629 static SHORT Conf_BorderVectors7[] = { 630 0,0, 631 52,0, 632 52,11, 633 0,11, 634 0,0 635 }; 636 static struct Border Conf_Border7 = { 637 -1,-1, 638 2,0,JAM1, 639 5, 640 Conf_BorderVectors7, 641 NULL 642 }; 643 644 static struct IntuiText Conf_IText19 = { 645 1,0,JAM2, 646 10,2, 647 NULL, 648 "Save", 649 NULL 650 }; 651 652 static struct Gadget Conf_Gadget15 = { 653 NULL, 654 73,85, 655 51,10, 656 NULL, 657 RELVERIFY, 658 BOOLGADGET, 659 (APTR)&Conf_Border7, 660 NULL, 661 &Conf_IText19, 662 NULL, 663 NULL, 664 GADCONFSAVE, 665 NULL 666 }; 667 668 static SHORT Conf_BorderVectors8[] = { 669 0,0, 670 52,0, 671 52,11, 672 0,11, 673 0,0 674 }; 675 static struct Border Conf_Border8 = { 676 -1,-1, 677 2,0,JAM1, 678 5, 679 Conf_BorderVectors8, 680 NULL 681 }; 682 683 static struct IntuiText Conf_IText20 = { 684 1,0,JAM2, 685 10,2, 686 NULL, 687 "Load", 688 NULL 689 }; 690 691 static struct Gadget Conf_Gadget14 = { 692 &Conf_Gadget15, 693 9,85, 694 51,10, 695 NULL, 696 RELVERIFY, 697 BOOLGADGET, 698 (APTR)&Conf_Border8, 699 NULL, 700 &Conf_IText20, 701 NULL, 702 NULL, 703 GADCONFLOAD, 704 NULL 705 }; 706 707 static UBYTE Conf_Conf_ConfigNameSIBuff[50] = 708 "Nethack:NetHack.cnf"; 709 static struct StringInfo Conf_Conf_ConfigNameSInfo = { 710 Conf_Conf_ConfigNameSIBuff, 711 UNDOBUFFER, 712 0, 713 50, 714 0, 715 0,0,0,0,0, 716 0, 717 0, 718 NULL 719 }; 720 721 static SHORT Conf_BorderVectors9[] = { 722 0,0, 723 242,0, 724 242,10, 725 0,10, 726 0,0 727 }; 728 static struct Border Conf_Border9 = { 729 -1,-1, 730 1,0,JAM1, 731 5, 732 Conf_BorderVectors9, 733 NULL 734 }; 735 736 static struct Gadget Conf_ConfigName = { 737 &Conf_Gadget14, 738 151,100, 739 241,9, 740 NULL, 741 RELVERIFY+STRINGCENTER, 742 STRGADGET, 743 (APTR)&Conf_Border9, 744 NULL, 745 NULL, 746 NULL, 747 (APTR)&Conf_Conf_ConfigNameSInfo, 748 GADCONFNAME, 749 NULL 750 }; 751 752 static UBYTE Conf_Conf_StrSaveSIBuff[200]; 753 static struct StringInfo Conf_Conf_StrSaveSInfo = { 754 Conf_Conf_StrSaveSIBuff, 755 UNDOBUFFER, 756 0, 757 200, 758 0, 759 0,0,0,0,0, 760 0, 761 0, 762 NULL 763 }; 764 765 static SHORT Conf_BorderVectors10[] = { 766 0,0, 767 312,0, 768 312,10, 769 0,10, 770 0,0 771 }; 772 static struct Border Conf_Border10 = { 773 -1,-1, 774 3,0,JAM1, 775 5, 776 Conf_BorderVectors10, 777 NULL 778 }; 779 780 static struct Gadget Conf_StrSave = { 781 &Conf_ConfigName, 782 81,70, 783 311,9, 784 NULL, 785 RELVERIFY, 786 STRGADGET, 787 (APTR)&Conf_Border10, 788 NULL, 789 NULL, 790 NULL, 791 (APTR)&Conf_Conf_StrSaveSInfo, 792 GADSTRSAVE, 793 NULL 794 }; 795 796 static UBYTE Conf_Conf_StrLevelsSIBuff[200]; 797 static struct StringInfo Conf_Conf_StrLevelsSInfo = { 798 Conf_Conf_StrLevelsSIBuff, 799 UNDOBUFFER, 800 0, 801 200, 802 0, 803 0,0,0,0,0, 804 0, 805 0, 806 NULL 807 }; 808 809 static SHORT Conf_BorderVectors11[] = { 810 0,0, 811 312,0, 812 312,10, 813 0,10, 814 0,0 815 }; 816 static struct Border Conf_Border11 = { 817 -1,-1, 818 3,0,JAM1, 819 5, 820 Conf_BorderVectors11, 821 NULL 822 }; 823 824 static struct Gadget Conf_StrLevels = { 825 &Conf_StrSave, 826 81,56, 827 311,9, 828 NULL, 829 RELVERIFY, 830 STRGADGET, 831 (APTR)&Conf_Border11, 832 NULL, 833 NULL, 834 NULL, 835 (APTR)&Conf_Conf_StrLevelsSInfo, 836 GADSTRLEVELS, 837 NULL 838 }; 839 840 static UBYTE Conf_Conf_StrPathSIBuff[200]; 841 static struct StringInfo Conf_Conf_StrPathSInfo = { 842 Conf_Conf_StrPathSIBuff, 843 UNDOBUFFER, 844 0, 845 200, 846 0, 847 0,0,0,0,0, 848 0, 849 0, 850 NULL 851 }; 852 853 static SHORT Conf_BorderVectors12[] = { 854 0,0, 855 311,0, 856 311,10, 857 0,10, 858 0,0 859 }; 860 static struct Border Conf_Border12 = { 861 -1,-1, 862 3,0,JAM1, 863 5, 864 Conf_BorderVectors12, 865 NULL 866 }; 867 868 static struct Gadget Conf_StrPath = { 869 &Conf_StrLevels, 870 81,14, 871 310,9, 872 NULL, 873 RELVERIFY, 874 STRGADGET, 875 (APTR)&Conf_Border12, 876 NULL, 877 NULL, 878 NULL, 879 (APTR)&Conf_Conf_StrPathSInfo, 880 GADSTRPATH, 881 NULL 882 }; 883 884 static UBYTE Conf_Conf_StrPensSIBuff[200]; 885 static struct StringInfo Conf_Conf_StrPensSInfo = { 886 Conf_Conf_StrPensSIBuff, 887 UNDOBUFFER, 888 0, 889 200, 890 0, 891 0,0,0,0,0, 892 0, 893 0, 894 NULL 895 }; 896 897 static SHORT Conf_BorderVectors13[] = { 898 0,0, 899 312,0, 900 312,10, 901 0,10, 902 0,0 903 }; 904 static struct Border Conf_Border13 = { 905 -1,-1, 906 3,0,JAM1, 907 5, 908 Conf_BorderVectors13, 909 NULL 910 }; 911 912 static struct Gadget Conf_StrPens = { 913 &Conf_StrPath, 914 81,42, 915 311,9, 916 NULL, 917 RELVERIFY, 918 STRGADGET, 919 (APTR)&Conf_Border13, 920 NULL, 921 NULL, 922 NULL, 923 (APTR)&Conf_Conf_StrPensSInfo, 924 GADSTRPENS, 925 NULL 926 }; 927 928 static UBYTE Conf_Conf_StrHackdirSIBuff[200]; 929 static struct StringInfo Conf_Conf_StrHackdirSInfo = { 930 Conf_Conf_StrHackdirSIBuff, 931 UNDOBUFFER, 932 0, 933 200, 934 0, 935 0,0,0,0,0, 936 0, 937 0, 938 NULL 939 }; 940 941 static SHORT Conf_BorderVectors14[] = { 942 0,0, 943 312,0, 944 312,10, 945 0,10, 946 0,0 947 }; 948 static struct Border Conf_Border14 = { 949 -1,-1, 950 3,0,JAM1, 951 5, 952 Conf_BorderVectors14, 953 NULL 954 }; 955 956 static struct Gadget Conf_StrHackdir = { 957 &Conf_StrPens, 958 81,28, 959 311,9, 960 NULL, 961 RELVERIFY, 962 STRGADGET, 963 (APTR)&Conf_Border14, 964 NULL, 965 NULL, 966 NULL, 967 (APTR)&Conf_Conf_StrHackdirSInfo, 968 GADSTRHACKDIR, 969 NULL 970 }; 971 972 #define Conf_GadgetList4 Conf_StrHackdir 973 974 static struct IntuiText Conf_IText26 = { 975 1,0,JAM2, 976 10,101, 977 NULL, 978 "Config File Name:", 979 NULL 980 }; 981 982 static struct IntuiText Conf_IText25 = { 983 3,0,JAM2, 984 7,72, 985 NULL, 986 "Save Dir:", 987 &Conf_IText26 988 }; 989 990 static struct IntuiText Conf_IText24 = { 991 3,0,JAM2, 992 23,58, 993 NULL, 994 "Levels:", 995 &Conf_IText25 996 }; 997 998 static struct IntuiText Conf_IText23 = { 999 3,0,JAM2, 1000 39,44, 1001 NULL, 1002 "Pens:", 1003 &Conf_IText24 1004 }; 1005 1006 static struct IntuiText Conf_IText22 = { 1007 3,0,JAM2, 1008 15,30, 1009 NULL, 1010 "Hackdir:", 1011 &Conf_IText23 1012 }; 1013 1014 static struct IntuiText Conf_IText21 = { 1015 3,0,JAM2, 1016 39,16, 1017 NULL, 1018 "Path:", 1019 &Conf_IText22 1020 }; 1021 1022 #define Conf_IntuiTextList4 Conf_IText21 1023 1024 static struct NewWindow Conf_NewWindowStructure4 = { 1025 126,60, 1026 402,114, 1027 0,1, 1028 GADGETUP+CLOSEWINDOW+ACTIVEWINDOW+VANILLAKEY, 1029 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 1030 &Conf_StrHackdir, 1031 NULL, 1032 "Edit Game Configuration", 1033 NULL, 1034 NULL, 1035 5,5, 1036 -1,-1, 1037 CUSTOMSCREEN 1038 }; 1039 1040 static SHORT Str_BorderVectors15[] = { 1041 0,0, 1042 57,0, 1043 57,11, 1044 0,11, 1045 0,0 1046 }; 1047 static struct Border Str_Border15 = { 1048 -1,-1, 1049 3,0,JAM1, 1050 5, 1051 Str_BorderVectors15, 1052 NULL 1053 }; 1054 1055 static struct IntuiText Str_IText27 = { 1056 3,0,JAM2, 1057 4,2, 1058 NULL, 1059 "Cancel", 1060 NULL 1061 }; 1062 1063 static struct Gadget Str_Gadget17 = { 1064 NULL, 1065 9,15, 1066 56,10, 1067 NULL, 1068 RELVERIFY, 1069 BOOLGADGET, 1070 (APTR)&Str_Border15, 1071 NULL, 1072 &Str_IText27, 1073 NULL, 1074 NULL, 1075 GADSTRCANCEL, 1076 NULL 1077 }; 1078 1079 static UBYTE Str_Str_StringSIBuff[100]; 1080 static struct StringInfo Str_Str_StringSInfo = { 1081 Str_Str_StringSIBuff, 1082 UNDOBUFFER, 1083 0, 1084 100, 1085 0, 1086 0,0,0,0,0, 1087 0, 1088 0, 1089 NULL 1090 }; 1091 1092 static SHORT Str_BorderVectors16[] = { 1093 0,0, 1094 439,0, 1095 439,11, 1096 0,11, 1097 0,0 1098 }; 1099 static struct Border Str_Border16 = { 1100 -1,-1, 1101 3,0,JAM1, 1102 5, 1103 Str_BorderVectors16, 1104 NULL 1105 }; 1106 1107 static struct Gadget Str_String = { 1108 &Str_Gadget17, 1109 77,15, 1110 438,10, 1111 NULL, 1112 RELVERIFY+STRINGCENTER, 1113 STRGADGET, 1114 (APTR)&Str_Border16, 1115 NULL, 1116 NULL, 1117 NULL, 1118 (APTR)&Str_Str_StringSInfo, 1119 -1, 1120 NULL 1121 }; 1122 1123 #define Str_GadgetList5 Str_String 1124 1125 static struct NewWindow Str_NewWindowStructure5 = { 1126 55,60, 1127 526,31, 1128 0,1, 1129 GADGETUP+CLOSEWINDOW+ACTIVEWINDOW+VANILLAKEY, 1130 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 1131 &Str_String, 1132 NULL, 1133 "String Requester", 1134 NULL, 1135 NULL, 1136 5,5, 1137 -1,-1, 1138 CUSTOMSCREEN 1139 }; 1140 1141 static SHORT Info_BorderVectors17[] = { 1142 0,0, 1143 72,0, 1144 72,10, 1145 0,10, 1146 0,0 1147 }; 1148 static struct Border Info_Border17 = { 1149 -1,-1, 1150 3,0,JAM1, 1151 5, 1152 Info_BorderVectors17, 1153 NULL 1154 }; 1155 1156 static struct IntuiText Info_IText28 = { 1157 3,0,JAM2, 1158 24,1, 1159 NULL, 1160 "Use", 1161 NULL 1162 }; 1163 1164 static struct Gadget Info_Gadget29 = { 1165 NULL, 1166 247,78, 1167 71,9, 1168 NULL, 1169 RELVERIFY, 1170 BOOLGADGET, 1171 (APTR)&Info_Border17, 1172 NULL, 1173 &Info_IText28, 1174 NULL, 1175 NULL, 1176 GADUSEINFO, 1177 NULL 1178 }; 1179 1180 static SHORT Info_BorderVectors18[] = { 1181 0,0, 1182 72,0, 1183 72,10, 1184 0,10, 1185 0,0 1186 }; 1187 static struct Border Info_Border18 = { 1188 -1,-1, 1189 3,0,JAM1, 1190 5, 1191 Info_BorderVectors18, 1192 NULL 1193 }; 1194 1195 static struct IntuiText Info_IText29 = { 1196 3,0,JAM2, 1197 20,1, 1198 NULL, 1199 "Quit", 1200 NULL 1201 }; 1202 1203 static struct Gadget Info_Gadget28 = { 1204 &Info_Gadget29, 1205 474,78, 1206 71,9, 1207 NULL, 1208 RELVERIFY, 1209 BOOLGADGET, 1210 (APTR)&Info_Border18, 1211 NULL, 1212 &Info_IText29, 1213 NULL, 1214 NULL, 1215 GADQUITINFO, 1216 NULL 1217 }; 1218 1219 static SHORT Info_BorderVectors19[] = { 1220 0,0, 1221 72,0, 1222 72,10, 1223 0,10, 1224 0,0 1225 }; 1226 static struct Border Info_Border19 = { 1227 -1,-1, 1228 3,0,JAM1, 1229 5, 1230 Info_BorderVectors19, 1231 NULL 1232 }; 1233 1234 static struct IntuiText Info_IText30 = { 1235 3,0,JAM2, 1236 21,1, 1237 NULL, 1238 "Save", 1239 NULL 1240 }; 1241 1242 static struct Gadget Info_Gadget27 = { 1243 &Info_Gadget28, 1244 11,78, 1245 71,9, 1246 NULL, 1247 RELVERIFY, 1248 BOOLGADGET, 1249 (APTR)&Info_Border19, 1250 NULL, 1251 &Info_IText30, 1252 NULL, 1253 NULL, 1254 GADSAVEINFO, 1255 NULL 1256 }; 1257 1258 static SHORT Info_BorderVectors20[] = { 1259 0,0, 1260 60,0, 1261 60,11, 1262 0,11, 1263 0,0 1264 }; 1265 static struct Border Info_Border20 = { 1266 -1,-1, 1267 3,0,JAM1, 1268 5, 1269 Info_BorderVectors20, 1270 NULL 1271 }; 1272 1273 static struct IntuiText Info_IText31 = { 1274 3,0,JAM2, 1275 18,1, 1276 NULL, 1277 "Del", 1278 NULL 1279 }; 1280 1281 static struct Gadget Info_Gadget26 = { 1282 &Info_Gadget27, 1283 78,46, 1284 59,10, 1285 NULL, 1286 RELVERIFY, 1287 BOOLGADGET, 1288 (APTR)&Info_Border20, 1289 NULL, 1290 &Info_IText31, 1291 NULL, 1292 NULL, 1293 GADDELTOOL, 1294 NULL 1295 }; 1296 1297 static SHORT Info_BorderVectors21[] = { 1298 0,0, 1299 59,0, 1300 59,11, 1301 0,11, 1302 0,0 1303 }; 1304 static struct Border Info_Border21 = { 1305 -1,-1, 1306 3,0,JAM1, 1307 5, 1308 Info_BorderVectors21, 1309 NULL 1310 }; 1311 1312 static struct IntuiText Info_IText32 = { 1313 3,0,JAM2, 1314 18,1, 1315 NULL, 1316 "Add", 1317 NULL 1318 }; 1319 1320 static struct Gadget Info_Gadget25 = { 1321 &Info_Gadget26, 1322 12,46, 1323 58,10, 1324 NULL, 1325 RELVERIFY, 1326 BOOLGADGET, 1327 (APTR)&Info_Border21, 1328 NULL, 1329 &Info_IText32, 1330 NULL, 1331 NULL, 1332 GADADDTOOL, 1333 NULL 1334 }; 1335 1336 static struct IntuiText Info_IText33 = { 1337 3,0,JAM2, 1338 6,1, 1339 NULL, 1340 "Edit Game Options", 1341 NULL 1342 }; 1343 1344 static struct Gadget Info_EditOpts = { 1345 &Info_Gadget25, 1346 397,47, 1347 148,10, 1348 NULL, 1349 RELVERIFY, 1350 BOOLGADGET, 1351 NULL, 1352 NULL, 1353 &Info_IText33, 1354 NULL, 1355 NULL, 1356 GADEDITOPTS, 1357 NULL 1358 }; 1359 1360 static SHORT Info_BorderVectors22[] = { 1361 0,0, 1362 14,0, 1363 14,7, 1364 0,7, 1365 0,0 1366 }; 1367 static struct Border Info_Border22 = { 1368 -1,-1, 1369 3,0,JAM1, 1370 5, 1371 Info_BorderVectors22, 1372 NULL 1373 }; 1374 1375 static struct Gadget Info_ToolDown = { 1376 &Info_EditOpts, 1377 97,68, 1378 13,6, 1379 NULL, 1380 RELVERIFY, 1381 BOOLGADGET, 1382 (APTR)&Info_Border22, 1383 NULL, 1384 NULL, 1385 NULL, 1386 NULL, 1387 GADTOOLDOWN, 1388 NULL 1389 }; 1390 1391 static SHORT Info_BorderVectors23[] = { 1392 0,0, 1393 14,0, 1394 14,7, 1395 0,7, 1396 0,0 1397 }; 1398 static struct Border Info_Border23 = { 1399 -1,-1, 1400 3,0,JAM1, 1401 5, 1402 Info_BorderVectors23, 1403 NULL 1404 }; 1405 1406 static struct Gadget Info_ToolUp = { 1407 &Info_ToolDown, 1408 97,61, 1409 13,6, 1410 NULL, 1411 RELVERIFY, 1412 BOOLGADGET, 1413 (APTR)&Info_Border23, 1414 NULL, 1415 NULL, 1416 NULL, 1417 NULL, 1418 GADTOOLUP, 1419 NULL 1420 }; 1421 1422 static UBYTE Info_Info_ToolTypesSIBuff[200]; 1423 static struct StringInfo Info_Info_ToolTypesSInfo = { 1424 Info_Info_ToolTypesSIBuff, 1425 UNDOBUFFER, 1426 0, 1427 200, 1428 0, 1429 0,0,0,0,0, 1430 0, 1431 0, 1432 NULL 1433 }; 1434 1435 static SHORT Info_BorderVectors24[] = { 1436 0,0, 1437 430,0, 1438 430,10, 1439 0,10, 1440 0,0 1441 }; 1442 static struct Border Info_Border24 = { 1443 -1,-1, 1444 3,0,JAM1, 1445 5, 1446 Info_BorderVectors24, 1447 NULL 1448 }; 1449 1450 static struct IntuiText Info_IText34 = { 1451 3,0,JAM2, 1452 -110,1, 1453 NULL, 1454 "Tool Types:", 1455 NULL 1456 }; 1457 1458 static struct Gadget Info_ToolTypes = { 1459 &Info_ToolUp, 1460 116,63, 1461 429,9, 1462 NULL, 1463 RELVERIFY, 1464 STRGADGET, 1465 (APTR)&Info_Border24, 1466 NULL, 1467 &Info_IText34, 1468 NULL, 1469 (APTR)&Info_Info_ToolTypesSInfo, 1470 GADTOOLTYPES, 1471 NULL 1472 }; 1473 1474 static SHORT Info_BorderVectors25[] = { 1475 0,0, 1476 144,0, 1477 144,12, 1478 0,12, 1479 0,0 1480 }; 1481 static struct Border Info_Border25 = { 1482 -1,-1, 1483 3,0,JAM1, 1484 5, 1485 Info_BorderVectors25, 1486 NULL 1487 }; 1488 1489 static struct IntuiText Info_IText35 = { 1490 3,0,JAM2, 1491 -85,2, 1492 NULL, 1493 "Character:", 1494 NULL 1495 }; 1496 1497 static struct Gadget Info_Class = { 1498 &Info_ToolTypes, 1499 402,15, 1500 143,11, 1501 GADGHBOX+GADGHIMAGE, 1502 NULL, 1503 BOOLGADGET, 1504 (APTR)&Info_Border25, 1505 NULL, 1506 &Info_IText35, 1507 NULL, 1508 NULL, 1509 -1, 1510 NULL 1511 }; 1512 1513 static UBYTE Info_Info_PlayerSIBuff[100]; 1514 static struct StringInfo Info_Info_PlayerSInfo = { 1515 Info_Info_PlayerSIBuff, 1516 NULL, 1517 0, 1518 100, 1519 0, 1520 0,0,0,0,0, 1521 0, 1522 0, 1523 NULL 1524 }; 1525 1526 static SHORT Info_BorderVectors26[] = { 1527 0,0, 1528 197,0, 1529 197,12, 1530 0,12, 1531 0,0 1532 }; 1533 static struct Border Info_Border26 = { 1534 -1,-1, 1535 3,0,JAM1, 1536 5, 1537 Info_BorderVectors26, 1538 NULL 1539 }; 1540 1541 static struct IntuiText Info_IText36 = { 1542 3,0,JAM2, 1543 -101,2, 1544 NULL, 1545 "Player Name:", 1546 NULL 1547 }; 1548 1549 static struct Gadget Info_Player = { 1550 &Info_Class, 1551 110,15, 1552 196,11, 1553 NULL, 1554 RELVERIFY, 1555 STRGADGET, 1556 (APTR)&Info_Border26, 1557 NULL, 1558 &Info_IText36, 1559 NULL, 1560 (APTR)&Info_Info_PlayerSInfo, 1561 GADPLNAME, 1562 NULL 1563 }; 1564 1565 static UBYTE Info_Info_CommentSIBuff[100]; 1566 static struct StringInfo Info_Info_CommentSInfo = { 1567 Info_Info_CommentSIBuff, 1568 UNDOBUFFER, 1569 0, 1570 100, 1571 0, 1572 0,0,0,0,0, 1573 0, 1574 0, 1575 NULL 1576 }; 1577 1578 static SHORT Info_BorderVectors27[] = { 1579 0,0, 1580 466,0, 1581 466,11, 1582 0,11, 1583 0,0 1584 }; 1585 static struct Border Info_Border27 = { 1586 -1,-1, 1587 3,0,JAM1, 1588 5, 1589 Info_BorderVectors27, 1590 NULL 1591 }; 1592 1593 static struct IntuiText Info_IText37 = { 1594 3,0,JAM2, 1595 -70,1, 1596 NULL, 1597 "Comment:", 1598 NULL 1599 }; 1600 1601 static struct Gadget Info_Comment = { 1602 &Info_Player, 1603 80,31, 1604 465,10, 1605 NULL, 1606 RELVERIFY+STRINGCENTER, 1607 STRGADGET, 1608 (APTR)&Info_Border27, 1609 NULL, 1610 &Info_IText37, 1611 NULL, 1612 (APTR)&Info_Info_CommentSInfo, 1613 -1, 1614 NULL 1615 }; 1616 1617 #define Info_GadgetList6 Info_Comment 1618 1619 static struct IntuiText Info_IText38 = { 1620 3,1,COMPLEMENT, 1621 19,0, 1622 NULL, 1623 "Wizard", 1624 NULL 1625 }; 1626 1627 static struct MenuItem Info_MenuItem25 = { 1628 NULL, 1629 0,96, 1630 103,8, 1631 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1632 4095, 1633 (APTR)&Info_IText38, 1634 NULL, 1635 NULL, 1636 NULL, 1637 MENUNULL 1638 }; 1639 1640 static struct IntuiText Info_IText39 = { 1641 3,1,COMPLEMENT, 1642 19,0, 1643 NULL, 1644 "Valkyrie", 1645 NULL 1646 }; 1647 1648 static struct MenuItem Info_MenuItem24 = { 1649 &Info_MenuItem25, 1650 0,88, 1651 103,8, 1652 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1653 6143, 1654 (APTR)&Info_IText39, 1655 NULL, 1656 NULL, 1657 NULL, 1658 MENUNULL 1659 }; 1660 1661 static struct IntuiText Info_IText40 = { 1662 3,1,COMPLEMENT, 1663 19,0, 1664 NULL, 1665 "Tourist", 1666 NULL 1667 }; 1668 1669 static struct MenuItem Info_MenuItem23 = { 1670 &Info_MenuItem24, 1671 0,80, 1672 103,8, 1673 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1674 7167, 1675 (APTR)&Info_IText40, 1676 NULL, 1677 NULL, 1678 NULL, 1679 MENUNULL 1680 }; 1681 1682 static struct IntuiText Info_IText41 = { 1683 3,1,COMPLEMENT, 1684 19,0, 1685 NULL, 1686 "Samurai", 1687 NULL 1688 }; 1689 1690 static struct MenuItem Info_MenuItem22 = { 1691 &Info_MenuItem23, 1692 0,72, 1693 103,8, 1694 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1695 7679, 1696 (APTR)&Info_IText41, 1697 NULL, 1698 NULL, 1699 NULL, 1700 MENUNULL 1701 }; 1702 1703 static struct IntuiText Info_IText42 = { 1704 3,1,COMPLEMENT, 1705 19,0, 1706 NULL, 1707 "Rogue", 1708 NULL 1709 }; 1710 1711 static struct MenuItem Info_MenuItem21 = { 1712 &Info_MenuItem22, 1713 0,64, 1714 103,8, 1715 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1716 7935, 1717 (APTR)&Info_IText42, 1718 NULL, 1719 NULL, 1720 NULL, 1721 MENUNULL 1722 }; 1723 1724 static struct IntuiText Info_IText43 = { 1725 3,1,COMPLEMENT, 1726 19,0, 1727 NULL, 1728 "Priest", 1729 NULL 1730 }; 1731 1732 static struct MenuItem Info_MenuItem20 = { 1733 &Info_MenuItem21, 1734 0,56, 1735 103,8, 1736 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1737 8063, 1738 (APTR)&Info_IText43, 1739 NULL, 1740 NULL, 1741 NULL, 1742 MENUNULL 1743 }; 1744 1745 static struct IntuiText Info_IText44 = { 1746 3,1,COMPLEMENT, 1747 19,0, 1748 NULL, 1749 "Knight", 1750 NULL 1751 }; 1752 1753 static struct MenuItem Info_MenuItem19 = { 1754 &Info_MenuItem20, 1755 0,48, 1756 103,8, 1757 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1758 8127, 1759 (APTR)&Info_IText44, 1760 NULL, 1761 NULL, 1762 NULL, 1763 MENUNULL 1764 }; 1765 1766 static struct IntuiText Info_IText45 = { 1767 3,1,COMPLEMENT, 1768 19,0, 1769 NULL, 1770 "Healer", 1771 NULL 1772 }; 1773 1774 static struct MenuItem Info_MenuItem18 = { 1775 &Info_MenuItem19, 1776 0,40, 1777 103,8, 1778 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1779 8159, 1780 (APTR)&Info_IText45, 1781 NULL, 1782 NULL, 1783 NULL, 1784 MENUNULL 1785 }; 1786 1787 static struct IntuiText Info_IText46 = { 1788 3,1,COMPLEMENT, 1789 19,0, 1790 NULL, 1791 "Elf", 1792 NULL 1793 }; 1794 1795 static struct MenuItem Info_MenuItem17 = { 1796 &Info_MenuItem18, 1797 0,32, 1798 103,8, 1799 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1800 8175, 1801 (APTR)&Info_IText46, 1802 NULL, 1803 NULL, 1804 NULL, 1805 MENUNULL 1806 }; 1807 1808 static struct IntuiText Info_IText47 = { 1809 3,1,COMPLEMENT, 1810 19,0, 1811 NULL, 1812 "Caveman", 1813 NULL 1814 }; 1815 1816 static struct MenuItem Info_MenuItem16 = { 1817 &Info_MenuItem17, 1818 0,24, 1819 103,8, 1820 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1821 8183, 1822 (APTR)&Info_IText47, 1823 NULL, 1824 NULL, 1825 NULL, 1826 MENUNULL 1827 }; 1828 1829 static struct IntuiText Info_IText48 = { 1830 3,1,COMPLEMENT, 1831 19,0, 1832 NULL, 1833 "Barbarian", 1834 NULL 1835 }; 1836 1837 static struct MenuItem Info_MenuItem15 = { 1838 &Info_MenuItem16, 1839 0,16, 1840 103,8, 1841 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1842 8187, 1843 (APTR)&Info_IText48, 1844 NULL, 1845 NULL, 1846 NULL, 1847 MENUNULL 1848 }; 1849 1850 static struct IntuiText Info_IText49 = { 1851 3,1,COMPLEMENT, 1852 19,0, 1853 NULL, 1854 "Archeologist", 1855 NULL 1856 }; 1857 1858 static struct MenuItem Info_MenuItem14 = { 1859 &Info_MenuItem15, 1860 0,8, 1861 103,8, 1862 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP, 1863 8189, 1864 (APTR)&Info_IText49, 1865 NULL, 1866 NULL, 1867 NULL, 1868 MENUNULL 1869 }; 1870 1871 static struct IntuiText Info_IText50 = { 1872 3,1,COMPLEMENT, 1873 19,0, 1874 NULL, 1875 "Random", 1876 NULL 1877 }; 1878 1879 static struct MenuItem Info_MenuItem13 = { 1880 &Info_MenuItem14, 1881 0,0, 1882 103,8, 1883 CHECKIT+ITEMTEXT+ITEMENABLED+HIGHCOMP+CHECKED, 1884 8190, 1885 (APTR)&Info_IText50, 1886 NULL, 1887 NULL, 1888 NULL, 1889 MENUNULL 1890 }; 1891 1892 static struct Menu Info_Menu3 = { 1893 NULL, 1894 0,0, 1895 70,0, 1896 MENUENABLED, 1897 "Character", 1898 &Info_MenuItem13 1899 }; 1900 1901 #define Info_MenuList6 Info_Menu3 1902 1903 static struct NewWindow Info_NewWindowStructure6 = { 1904 41,51, 1905 556,93, 1906 0,1, 1907 GADGETUP+MENUPICK+CLOSEWINDOW+ACTIVEWINDOW+VANILLAKEY, 1908 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 1909 &Info_Comment, 1910 NULL, 1911 "Game Information", 1912 NULL, 1913 NULL, 1914 5,5, 1915 -1,-1, 1916 CUSTOMSCREEN 1917 }; 1918 1919 static struct IntuiText Help1_IText51 = { 1920 1,0,JAM2, 1921 7,2, 1922 NULL, 1923 "Okay", 1924 NULL 1925 }; 1926 1927 static struct Gadget Help1_Gadget30 = { 1928 NULL, 1929 12,34, 1930 47,12, 1931 NULL, 1932 RELVERIFY, 1933 BOOLGADGET, 1934 NULL, 1935 NULL, 1936 &Help1_IText51, 1937 NULL, 1938 NULL, 1939 GADHELPOKAY, 1940 NULL 1941 }; 1942 1943 #define Help1_GadgetList7 Help1_Gadget30 1944 1945 static struct IntuiText Help1_IText53 = { 1946 3,0,JAM2, 1947 10,22, 1948 NULL, 1949 "to start a new game or to resume a saved game.", 1950 NULL 1951 }; 1952 1953 static struct IntuiText Help1_IText52 = { 1954 3,0,JAM2, 1955 9,13, 1956 NULL, 1957 "Click on NewGame Gadget or a Saved Game twice", 1958 &Help1_IText53 1959 }; 1960 1961 #define Help1_IntuiTextList7 Help1_IText52 1962 1963 static struct NewWindow Help1_NewWindowStructure7 = { 1964 134,60, 1965 385,51, 1966 0,1, 1967 GADGETUP+CLOSEWINDOW+VANILLAKEY, 1968 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 1969 &Help1_Gadget30, 1970 NULL, 1971 "Help for Game Selection", 1972 NULL, 1973 NULL, 1974 5,5, 1975 -1,-1, 1976 CUSTOMSCREEN 1977 }; 1978 1979 static struct IntuiText Help2_IText54 = { 1980 1,0,JAM2, 1981 7,2, 1982 NULL, 1983 "Okay", 1984 NULL 1985 }; 1986 1987 static struct Gadget Help2_Gadget31 = { 1988 NULL, 1989 17,42, 1990 47,10, 1991 NULL, 1992 RELVERIFY, 1993 BOOLGADGET, 1994 NULL, 1995 NULL, 1996 &Help2_IText54, 1997 NULL, 1998 NULL, 1999 GADHELPOKAY, 2000 NULL 2001 }; 2002 2003 #define Help2_GadgetList8 Help2_Gadget31 2004 2005 static struct IntuiText Help2_IText57 = { 2006 3,0,JAM2, 2007 15,31, 2008 NULL, 2009 "resume the saved game.", 2010 NULL 2011 }; 2012 2013 static struct IntuiText Help2_IText56 = { 2014 3,0,JAM2, 2015 15,22, 2016 NULL, 2017 "selected game, or double click on a game to", 2018 &Help2_IText57 2019 }; 2020 2021 static struct IntuiText Help2_IText55 = { 2022 3,0,JAM2, 2023 15,13, 2024 NULL, 2025 "Use Menu button to select operation on the", 2026 &Help2_IText56 2027 }; 2028 2029 #define Help2_IntuiTextList8 Help2_IText55 2030 2031 static struct NewWindow Help2_NewWindowStructure8 = { 2032 139,60, 2033 372,58, 2034 0,1, 2035 GADGETUP+CLOSEWINDOW+VANILLAKEY, 2036 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 2037 &Help2_Gadget31, 2038 NULL, 2039 "Help for Game Manipulation", 2040 NULL, 2041 NULL, 2042 5,5, 2043 -1,-1, 2044 CUSTOMSCREEN 2045 }; 2046 2047 static struct IntuiText About_IText58 = { 2048 1,0,JAM2, 2049 40,2, 2050 NULL, 2051 "Okay", 2052 NULL 2053 }; 2054 2055 static struct Gadget About_Gadget32 = { 2056 NULL, 2057 163,68, 2058 109,10, 2059 NULL, 2060 RELVERIFY, 2061 BOOLGADGET, 2062 NULL, 2063 NULL, 2064 &About_IText58, 2065 NULL, 2066 NULL, 2067 GADHELPOKAY, 2068 NULL 2069 }; 2070 2071 #define About_GadgetList9 About_Gadget32 2072 2073 static struct IntuiText About_IText67 = { 2074 2,0,JAM2, 2075 10,56, 2076 NULL, 2077 "1992 see NetHack license for details and limitations!", 2078 NULL 2079 }; 2080 2081 static struct IntuiText About_IText66 = { 2082 2,0,JAM2, 2083 20,47, 2084 NULL, 2085 "HackWB is copyright Gregg Wonderly and Ken Lorber,", 2086 &About_IText67 2087 }; 2088 2089 static struct IntuiText About_IText65 = { 2090 3,0,JAM2, 2091 8,31, 2092 NULL, 2093 "finished by Gregg...", 2094 &About_IText66 2095 }; 2096 2097 static struct IntuiText About_IText64 = { 2098 3,0,JAM2, 2099 135,22, 2100 NULL, 2101 "The programming was started by Ken and", 2102 &About_IText65 2103 }; 2104 2105 static struct IntuiText About_IText63 = { 2106 3,0,JAM2, 2107 120,22, 2108 NULL, 2109 ".", 2110 &About_IText64 2111 }; 2112 2113 static struct IntuiText About_IText62 = { 2114 2,0,JAM2, 2115 8,22, 2116 NULL, 2117 "Gregg Wonderly", 2118 &About_IText63 2119 }; 2120 2121 static struct IntuiText About_IText61 = { 2122 3,0,JAM2, 2123 396,13, 2124 NULL, 2125 "and", 2126 &About_IText62 2127 }; 2128 2129 static struct IntuiText About_IText60 = { 2130 2,0,JAM2, 2131 310,13, 2132 NULL, 2133 "Ken Lorber", 2134 &About_IText61 2135 }; 2136 2137 static struct IntuiText About_IText59 = { 2138 3,0,JAM2, 2139 8,13, 2140 NULL, 2141 "The NetHack WorkBench was designed by", 2142 &About_IText60 2143 }; 2144 2145 #define About_IntuiTextList9 About_IText59 2146 2147 static struct NewWindow About_NewWindowStructure9 = { 2148 89,60, 2149 447,83, 2150 0,1, 2151 GADGETUP+CLOSEWINDOW+VANILLAKEY, 2152 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 2153 &About_Gadget32, 2154 NULL, 2155 "About the NetHack WorkBench", 2156 NULL, 2157 NULL, 2158 5,5, 2159 -1,-1, 2160 CUSTOMSCREEN 2161 }; 2162 2163 static SHORT Help3_BorderVectors28[] = { 2164 0,0, 2165 489,0 2166 }; 2167 static struct Border Help3_Border28 = { 2168 2,169, 2169 1,0,JAM1, 2170 2, 2171 Help3_BorderVectors28, 2172 NULL 2173 }; 2174 2175 static struct Gadget Help3_Gadget35 = { 2176 NULL, 2177 0,0, 2178 1,1, 2179 GADGHBOX+GADGHIMAGE, 2180 NULL, 2181 BOOLGADGET, 2182 (APTR)&Help3_Border28, 2183 NULL, 2184 NULL, 2185 NULL, 2186 NULL, 2187 NULL, 2188 NULL 2189 }; 2190 2191 static struct IntuiText Help3_IText68 = { 2192 1,0,JAM2, 2193 8,2, 2194 NULL, 2195 "BKWD", 2196 NULL 2197 }; 2198 2199 static struct Gadget Help3_Gadget34 = { 2200 &Help3_Gadget35, 2201 434,173, 2202 47,10, 2203 NULL, 2204 RELVERIFY+GADGIMMEDIATE, 2205 BOOLGADGET, 2206 NULL, 2207 NULL, 2208 &Help3_IText68, 2209 NULL, 2210 NULL, 2211 GADHELPBKWD, 2212 NULL 2213 }; 2214 2215 static struct IntuiText Help3_IText69 = { 2216 1,0,JAM2, 2217 8,2, 2218 NULL, 2219 "FRWD", 2220 NULL 2221 }; 2222 2223 static struct Gadget Help3_Gadget33 = { 2224 &Help3_Gadget34, 2225 12,173, 2226 47,10, 2227 NULL, 2228 RELVERIFY+GADGIMMEDIATE, 2229 BOOLGADGET, 2230 NULL, 2231 NULL, 2232 &Help3_IText69, 2233 NULL, 2234 NULL, 2235 GADHELPFRWD, 2236 NULL 2237 }; 2238 2239 #define Help3_GadgetList10 Help3_Gadget33 2240 2241 static struct NewWindow Help3_NewWindowStructure10 = { 2242 75,9, 2243 494,189, 2244 0,1, 2245 GADGETDOWN+GADGETUP+CLOSEWINDOW+VANILLAKEY+INTUITICKS, 2246 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 2247 &Help3_Gadget33, 2248 NULL, 2249 "Help for Nethack WorkBench V3.1", 2250 NULL, 2251 NULL, 2252 5,5, 2253 -1,-1, 2254 CUSTOMSCREEN 2255 }; 2256 2257 static SHORT Rst_BorderVectors29[] = { 2258 0,0, 2259 58,0, 2260 58,11, 2261 0,11, 2262 0,0 2263 }; 2264 static struct Border Rst_Border29 = { 2265 -1,-1, 2266 3,0,JAM1, 2267 5, 2268 Rst_BorderVectors29, 2269 NULL 2270 }; 2271 2272 static struct IntuiText Rst_IText70 = { 2273 1,0,JAM1, 2274 8,1, 2275 NULL, 2276 "Cancel", 2277 NULL 2278 }; 2279 2280 static struct Gadget Rst_RestCancel = { 2281 NULL, 2282 230,42, 2283 57,10, 2284 NULL, 2285 RELVERIFY, 2286 BOOLGADGET, 2287 (APTR)&Rst_Border29, 2288 NULL, 2289 &Rst_IText70, 2290 NULL, 2291 NULL, 2292 GADRESTCAN, 2293 NULL 2294 }; 2295 2296 static SHORT Rst_BorderVectors30[] = { 2297 0,0, 2298 58,0, 2299 58,11, 2300 0,11, 2301 0,0 2302 }; 2303 static struct Border Rst_Border30 = { 2304 -1,-1, 2305 3,0,JAM1, 2306 5, 2307 Rst_BorderVectors30, 2308 NULL 2309 }; 2310 2311 static struct IntuiText Rst_IText71 = { 2312 1,0,JAM1, 2313 12,1, 2314 NULL, 2315 "Okay", 2316 NULL 2317 }; 2318 2319 static struct Gadget Rst_RestOkay = { 2320 &Rst_RestCancel, 2321 10,42, 2322 57,10, 2323 NULL, 2324 RELVERIFY, 2325 BOOLGADGET, 2326 (APTR)&Rst_Border30, 2327 NULL, 2328 &Rst_IText71, 2329 NULL, 2330 NULL, 2331 GADRESTOKAY, 2332 NULL 2333 }; 2334 2335 static UBYTE Rst_Rst_RestOldSIBuff[300]; 2336 static struct StringInfo Rst_Rst_RestOldSInfo = { 2337 Rst_Rst_RestOldSIBuff, 2338 UNDOBUFFER, 2339 0, 2340 300, 2341 0, 2342 0,0,0,0,0, 2343 0, 2344 0, 2345 NULL 2346 }; 2347 2348 static SHORT Rst_BorderVectors31[] = { 2349 0,0, 2350 187,0, 2351 187,10, 2352 0,10, 2353 0,0 2354 }; 2355 static struct Border Rst_Border31 = { 2356 -1,-1, 2357 3,0,JAM1, 2358 5, 2359 Rst_BorderVectors31, 2360 NULL 2361 }; 2362 2363 static struct Gadget Rst_RestOld = { 2364 &Rst_RestOkay, 2365 101,28, 2366 186,9, 2367 NULL, 2368 RELVERIFY+STRINGCENTER, 2369 STRGADGET, 2370 (APTR)&Rst_Border31, 2371 NULL, 2372 NULL, 2373 NULL, 2374 (APTR)&Rst_Rst_RestOldSInfo, 2375 GADRESTOLD, 2376 NULL 2377 }; 2378 2379 static UBYTE Rst_Rst_RestDirSIBuff[300]; 2380 static struct StringInfo Rst_Rst_RestDirSInfo = { 2381 Rst_Rst_RestDirSIBuff, 2382 UNDOBUFFER, 2383 0, 2384 300, 2385 0, 2386 0,0,0,0,0, 2387 0, 2388 0, 2389 NULL 2390 }; 2391 2392 static SHORT Rst_BorderVectors32[] = { 2393 0,0, 2394 187,0, 2395 187,10, 2396 0,10, 2397 0,0 2398 }; 2399 static struct Border Rst_Border32 = { 2400 -1,-1, 2401 3,0,JAM1, 2402 5, 2403 Rst_BorderVectors32, 2404 NULL 2405 }; 2406 2407 static struct Gadget Rst_RestDir = { 2408 &Rst_RestOld, 2409 101,15, 2410 186,9, 2411 NULL, 2412 RELVERIFY+STRINGCENTER, 2413 STRGADGET, 2414 (APTR)&Rst_Border32, 2415 NULL, 2416 NULL, 2417 NULL, 2418 (APTR)&Rst_Rst_RestDirSInfo, 2419 GADRESTDIR, 2420 NULL 2421 }; 2422 2423 #define Rst_GadgetList11 Rst_RestDir 2424 2425 static struct IntuiText Rst_IText73 = { 2426 1,0,JAM1, 2427 18,29, 2428 NULL, 2429 "Old File:", 2430 NULL 2431 }; 2432 2433 static struct IntuiText Rst_IText72 = { 2434 1,0,JAM1, 2435 14,15, 2436 NULL, 2437 "Directory:", 2438 &Rst_IText73 2439 }; 2440 2441 #define Rst_IntuiTextList11 Rst_IText72 2442 2443 static struct NewWindow Rst_NewWindowStructure11 = { 2444 177,60, 2445 295,57, 2446 0,2, 2447 GADGETDOWN+GADGETUP+CLOSEWINDOW+ACTIVEWINDOW+VANILLAKEY, 2448 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, 2449 &Rst_RestDir, 2450 NULL, 2451 "Recover Parameters", 2452 NULL, 2453 NULL, 2454 5,5, 2455 -1,-1, 2456 CUSTOMSCREEN 2457 }; 2458 2459 2460 /* end of PowerWindows source generation */ 2461