home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / nethack-3.1 / sys / amiga / randwin.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-16  |  3.3 KB  |  103 lines

  1.  
  2. SHORT Rnd_BorderVectors1[] = {
  3.     0,0,
  4.     49,0,
  5.     49,18,
  6.     0,18,
  7.     0,0
  8. };
  9. struct Border Rnd_Border1 = {
  10.     -1,-1,    /* XY origin relative to container TopLeft */
  11.     3,0,JAM1,    /* front pen, back pen and drawmode */
  12.     5,    /* number of XY vectors */
  13.     Rnd_BorderVectors1,    /* pointer to XY vectors */
  14.     NULL    /* next border in list */
  15. };
  16.  
  17. struct IntuiText Rnd_IText1 = {
  18.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  19.     8,5,    /* XY origin relative to container TopLeft */
  20.     NULL,    /* font pointer or NULL for default */
  21.     "OKAY",    /* pointer to text */
  22.     NULL    /* next IntuiText structure */
  23. };
  24.  
  25. struct Gadget Rnd_Gadget1 = {
  26.     NULL,    /* next gadget */
  27.     99,65,    /* origin XY of hit box relative to window TopLeft */
  28.     48,17,    /* hit box width and height */
  29.     NULL,    /* gadget flags */
  30.     RELVERIFY,    /* activation flags */
  31.     BOOLGADGET,    /* gadget type flags */
  32.     (APTR)&Rnd_Border1,    /* gadget border or image to be rendered */
  33.     NULL,    /* alternate imagery for selection */
  34.     &Rnd_IText1,    /* first IntuiText structure */
  35.     NULL,    /* gadget mutual-exclude long word */
  36.     NULL,    /* SpecialInfo structure */
  37.     1,    /* user-definable data */
  38.     NULL    /* pointer to user-definable data */
  39. };
  40.  
  41. #define Rnd_GadgetList1 Rnd_Gadget1
  42.  
  43. struct IntuiText Rnd_IText6 = {
  44.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  45.     198,29,    /* XY origin relative to container TopLeft */
  46.     NULL,    /* font pointer or NULL for default */
  47.     "a",    /* pointer to text */
  48.     NULL    /* next IntuiText structure */
  49. };
  50.  
  51. struct IntuiText Rnd_IText5 = {
  52.     1,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  53.     67,47,    /* XY origin relative to container TopLeft */
  54.     NULL,    /* font pointer or NULL for default */
  55.     "Character Choice",    /* pointer to text */
  56.     &Rnd_IText6    /* next IntuiText structure */
  57. };
  58.  
  59. struct IntuiText Rnd_IText4 = {
  60.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  61.     25,29,    /* XY origin relative to container TopLeft */
  62.     NULL,    /* font pointer or NULL for default */
  63.     "exciting game playing as",    /* pointer to text */
  64.     &Rnd_IText5    /* next IntuiText structure */
  65. };
  66.  
  67. struct IntuiText Rnd_IText3 = {
  68.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  69.     15,18,    /* XY origin relative to container TopLeft */
  70.     NULL,    /* font pointer or NULL for default */
  71.     "I think that you will have an",    /* pointer to text */
  72.     &Rnd_IText4    /* next IntuiText structure */
  73. };
  74.  
  75. struct IntuiText Rnd_IText2 = {
  76.     3,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  77.     7,6,    /* XY origin relative to container TopLeft */
  78.     NULL,    /* font pointer or NULL for default */
  79.     "You asked for a random Character,",    /* pointer to text */
  80.     &Rnd_IText3    /* next IntuiText structure */
  81. };
  82.  
  83. #define Rnd_IntuiTextList1 Rnd_IText2
  84.  
  85. struct NewWindow Rnd_NewWindowStructure1 = {
  86.     174,58,    /* window XY origin relative to TopLeft of screen */
  87.     249,90,    /* window width and height */
  88.     0,1,    /* detail and block pens */
  89.     GADGETUP+CLOSEWINDOW+INACTIVEWINDOW+INTUITICKS,    /* IDCMP flags */
  90.     ACTIVATE+NOCAREREFRESH,    /* other window flags */
  91.     &Rnd_Gadget1,    /* first gadget in gadget list */
  92.     NULL,    /* custom CHECKMARK imagery */
  93.     NULL,    /* window title */
  94.     NULL,    /* custom screen pointer */
  95.     NULL,    /* custom bitmap */
  96.     5,5,    /* minimum width and height */
  97.     -1,-1,    /* maximum width and height */
  98.     CUSTOMSCREEN    /* destination screen type */
  99. };
  100.  
  101.  
  102. /* end of PowerWindows source generation */
  103.