home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 543a.lha / Nebula / source.LZH / source / intro.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-24  |  6.2 KB  |  227 lines

  1. /*
  2.  
  3. ------------------------------------------------------------------
  4.  
  5. Black Nebula
  6.  
  7. File :                intro.h
  8. Programmer:        Colin Adams
  9. Date:                24/5/91
  10. Last Modified :    24/5/91
  11.  
  12. Description:
  13.  
  14. Code for window and gadgets generated by PowerWindows program.
  15.  
  16. ------------------------------------------------------------------
  17.  
  18. */
  19.  
  20.  
  21. struct TextAttr TOPAZ80 = {
  22.     (STRPTR)"topaz.font",
  23.     TOPAZ_EIGHTY,0,0
  24. };
  25.  
  26. struct NewScreen NewScreenStructure = {
  27.     0,0,    /* screen XY origin relative to View */
  28.     640,256,    /* screen width and height */
  29.     2,    /* screen depth (number of bitplanes) */
  30.     0,1,    /* detail and block pens */
  31.     HIRES,    /* display modes for this screen */
  32.     CUSTOMSCREEN,    /* screen type */
  33.     &TOPAZ80,    /* pointer to default screen font */
  34.     NULL,    /* screen title */
  35.     NULL,    /* first in list of custom screen gadgets */
  36.     NULL    /* pointer to custom BitMap structure */
  37. };
  38.  
  39. #define NEWSCREENSTRUCTURE NewScreenStructure
  40.  
  41. USHORT Palette[] = {
  42.     0x0D99,    /* color #0 */
  43.     0x0002,    /* color #1 */
  44.     0x0FEE,    /* color #2 */
  45.     0x0B67    /* color #3 */
  46. #define PaletteColorCount 4
  47. };
  48.  
  49. #define PALETTE Palette
  50.  
  51. SHORT BorderVectors1[] = {
  52.     0,0,
  53.     322,0,
  54.     322,21,
  55.     0,21,
  56.     0,0
  57. };
  58. struct Border Border1 = {
  59.     -1,-1,    /* XY origin relative to container TopLeft */
  60.     3,0,JAM1,    /* front pen, back pen and drawmode */
  61.     5,    /* number of XY vectors */
  62.     BorderVectors1,    /* pointer to XY vectors */
  63.     NULL    /* next border in list */
  64. };
  65.  
  66. struct IntuiText IText1 = {
  67.     2,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  68.     159,6,    /* XY origin relative to container TopLeft */
  69.     NULL,    /* font pointer or NULL for default */
  70.     "Quit",    /* pointer to text */
  71.     NULL    /* next IntuiText structure */
  72. };
  73.  
  74. struct Gadget Gadget4 = {
  75.     NULL,    /* next gadget */
  76.     149,79,    /* origin XY of hit box relative to window TopLeft */
  77.     321,20,    /* hit box width and height */
  78.     NULL,    /* gadget flags */
  79.     RELVERIFY,    /* activation flags */
  80.     BOOLGADGET,    /* gadget type flags */
  81.     (APTR)&Border1,    /* gadget border or image to be rendered */
  82.     NULL,    /* alternate imagery for selection */
  83.     &IText1,    /* first IntuiText structure */
  84.     NULL,    /* gadget mutual-exclude long word */
  85.     NULL,    /* SpecialInfo structure */
  86.     NULL,    /* user-definable data */
  87.     NULL    /* pointer to user-definable data */
  88. };
  89.  
  90. SHORT BorderVectors2[] = {
  91.     0,0,
  92.     322,0,
  93.     322,21,
  94.     0,21,
  95.     0,0
  96. };
  97. struct Border Border2 = {
  98.     -1,-1,    /* XY origin relative to container TopLeft */
  99.     3,0,JAM1,    /* front pen, back pen and drawmode */
  100.     5,    /* number of XY vectors */
  101.     BorderVectors2,    /* pointer to XY vectors */
  102.     NULL    /* next border in list */
  103. };
  104.  
  105. struct IntuiText IText2 = {
  106.     2,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  107.     127,6,    /* XY origin relative to container TopLeft */
  108.     NULL,    /* font pointer or NULL for default */
  109.     "Instructions",    /* pointer to text */
  110.     NULL    /* next IntuiText structure */
  111. };
  112.  
  113. struct Gadget Gadget3 = {
  114.     &Gadget4,    /* next gadget */
  115.     149,57,    /* origin XY of hit box relative to window TopLeft */
  116.     321,20,    /* hit box width and height */
  117.     NULL,    /* gadget flags */
  118.     RELVERIFY,    /* activation flags */
  119.     BOOLGADGET,    /* gadget type flags */
  120.     (APTR)&Border2,    /* gadget border or image to be rendered */
  121.     NULL,    /* alternate imagery for selection */
  122.     &IText2,    /* first IntuiText structure */
  123.     NULL,    /* gadget mutual-exclude long word */
  124.     NULL,    /* SpecialInfo structure */
  125.     NULL,    /* user-definable data */
  126.     NULL    /* pointer to user-definable data */
  127. };
  128.  
  129. SHORT BorderVectors3[] = {
  130.     0,0,
  131.     322,0,
  132.     322,21,
  133.     0,21,
  134.     0,0
  135. };
  136. struct Border Border3 = {
  137.     -1,-1,    /* XY origin relative to container TopLeft */
  138.     3,0,JAM1,    /* front pen, back pen and drawmode */
  139.     5,    /* number of XY vectors */
  140.     BorderVectors3,    /* pointer to XY vectors */
  141.     NULL    /* next border in list */
  142. };
  143.  
  144. struct IntuiText IText3 = {
  145.     2,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  146.     100,7,    /* XY origin relative to container TopLeft */
  147.     NULL,    /* font pointer or NULL for default */
  148.     "View Hall of Fame",    /* pointer to text */
  149.     NULL    /* next IntuiText structure */
  150. };
  151.  
  152. struct Gadget Gadget2 = {
  153.     &Gadget3,    /* next gadget */
  154.     149,35,    /* origin XY of hit box relative to window TopLeft */
  155.     321,20,    /* hit box width and height */
  156.     NULL,    /* gadget flags */
  157.     RELVERIFY,    /* activation flags */
  158.     BOOLGADGET,    /* gadget type flags */
  159.     (APTR)&Border3,    /* gadget border or image to be rendered */
  160.     NULL,    /* alternate imagery for selection */
  161.     &IText3,    /* first IntuiText structure */
  162.     NULL,    /* gadget mutual-exclude long word */
  163.     NULL,    /* SpecialInfo structure */
  164.     NULL,    /* user-definable data */
  165.     NULL    /* pointer to user-definable data */
  166. };
  167.  
  168. SHORT BorderVectors4[] = {
  169.     0,0,
  170.     322,0,
  171.     322,21,
  172.     0,21,
  173.     0,0
  174. };
  175. struct Border Border4 = {
  176.     -1,-1,    /* XY origin relative to container TopLeft */
  177.     3,0,JAM1,    /* front pen, back pen and drawmode */
  178.     5,    /* number of XY vectors */
  179.     BorderVectors4,    /* pointer to XY vectors */
  180.     NULL    /* next border in list */
  181. };
  182.  
  183. struct IntuiText IText4 = {
  184.     2,0,JAM2,    /* front and back text pens, drawmode and fill byte */
  185.     111,6,    /* XY origin relative to container TopLeft */
  186.     &TOPAZ80,    /* font pointer or NULL for default */
  187.     "Start the Game",    /* pointer to text */
  188.     NULL    /* next IntuiText structure */
  189. };
  190.  
  191. struct Gadget Gadget1 = {
  192.     &Gadget2,    /* next gadget */
  193.     149,13,    /* origin XY of hit box relative to window TopLeft */
  194.     321,20,    /* hit box width and height */
  195.     NULL,    /* gadget flags */
  196.     RELVERIFY,    /* activation flags */
  197.     BOOLGADGET,    /* gadget type flags */
  198.     (APTR)&Border4,    /* gadget border or image to be rendered */
  199.     NULL,    /* alternate imagery for selection */
  200.     &IText4,    /* first IntuiText structure */
  201.     NULL,    /* gadget mutual-exclude long word */
  202.     NULL,    /* SpecialInfo structure */
  203.     NULL,    /* user-definable data */
  204.     NULL    /* pointer to user-definable data */
  205. };
  206.  
  207. #define GadgetList1 Gadget1
  208.  
  209. struct NewWindow NewWindowStructure1 = {
  210.     0,0,    /* window XY origin relative to TopLeft of screen */
  211.     640,256,    /* window width and height */
  212.     0,1,    /* detail and block pens */
  213.     GADGETUP,    /* IDCMP flags */
  214.     ACTIVATE+RMBTRAP,    /* other window flags */
  215.     &Gadget1,    /* first gadget in gadget list */
  216.     NULL,    /* custom CHECKMARK imagery */
  217.     "BLACK NEBULA - CP3060 Graphics Project, Colin Adams",    /* window title */
  218.     NULL,    /* custom screen pointer */
  219.     NULL,    /* custom bitmap */
  220.     5,5,    /* minimum width and height */
  221.     -1,-1,    /* maximum width and height */
  222.     CUSTOMSCREEN    /* destination screen type */
  223. };
  224.  
  225.  
  226. /* end of PowerWindows source generation */
  227.