/* ------------------------------------------------------------------ Black Nebula File : intro.h Programmer: Colin Adams Date: 24/5/91 Last Modified : 24/5/91 Description: Code for window and gadgets generated by PowerWindows program. ------------------------------------------------------------------ */ struct TextAttr TOPAZ80 = { (STRPTR)"topaz.font", TOPAZ_EIGHTY,0,0 }; struct NewScreen NewScreenStructure = { 0,0, /* screen XY origin relative to View */ 640,256, /* screen width and height */ 2, /* screen depth (number of bitplanes) */ 0,1, /* detail and block pens */ HIRES, /* display modes for this screen */ CUSTOMSCREEN, /* screen type */ &TOPAZ80, /* pointer to default screen font */ NULL, /* screen title */ NULL, /* first in list of custom screen gadgets */ NULL /* pointer to custom BitMap structure */ }; #define NEWSCREENSTRUCTURE NewScreenStructure USHORT Palette[] = { 0x0D99, /* color #0 */ 0x0002, /* color #1 */ 0x0FEE, /* color #2 */ 0x0B67 /* color #3 */ #define PaletteColorCount 4 }; #define PALETTE Palette SHORT BorderVectors1[] = { 0,0, 322,0, 322,21, 0,21, 0,0 }; struct Border Border1 = { -1,-1, /* XY origin relative to container TopLeft */ 3,0,JAM1, /* front pen, back pen and drawmode */ 5, /* number of XY vectors */ BorderVectors1, /* pointer to XY vectors */ NULL /* next border in list */ }; struct IntuiText IText1 = { 2,0,JAM2, /* front and back text pens, drawmode and fill byte */ 159,6, /* XY origin relative to container TopLeft */ NULL, /* font pointer or NULL for default */ "Quit", /* pointer to text */ NULL /* next IntuiText structure */ }; struct Gadget Gadget4 = { NULL, /* next gadget */ 149,79, /* origin XY of hit box relative to window TopLeft */ 321,20, /* hit box width and height */ NULL, /* gadget flags */ RELVERIFY, /* activation flags */ BOOLGADGET, /* gadget type flags */ (APTR)&Border1, /* gadget border or image to be rendered */ NULL, /* alternate imagery for selection */ &IText1, /* first IntuiText structure */ NULL, /* gadget mutual-exclude long word */ NULL, /* SpecialInfo structure */ NULL, /* user-definable data */ NULL /* pointer to user-definable data */ }; SHORT BorderVectors2[] = { 0,0, 322,0, 322,21, 0,21, 0,0 }; struct Border Border2 = { -1,-1, /* XY origin relative to container TopLeft */ 3,0,JAM1, /* front pen, back pen and drawmode */ 5, /* number of XY vectors */ BorderVectors2, /* pointer to XY vectors */ NULL /* next border in list */ }; struct IntuiText IText2 = { 2,0,JAM2, /* front and back text pens, drawmode and fill byte */ 127,6, /* XY origin relative to container TopLeft */ NULL, /* font pointer or NULL for default */ "Instructions", /* pointer to text */ NULL /* next IntuiText structure */ }; struct Gadget Gadget3 = { &Gadget4, /* next gadget */ 149,57, /* origin XY of hit box relative to window TopLeft */ 321,20, /* hit box width and height */ NULL, /* gadget flags */ RELVERIFY, /* activation flags */ BOOLGADGET, /* gadget type flags */ (APTR)&Border2, /* gadget border or image to be rendered */ NULL, /* alternate imagery for selection */ &IText2, /* first IntuiText structure */ NULL, /* gadget mutual-exclude long word */ NULL, /* SpecialInfo structure */ NULL, /* user-definable data */ NULL /* pointer to user-definable data */ }; SHORT BorderVectors3[] = { 0,0, 322,0, 322,21, 0,21, 0,0 }; struct Border Border3 = { -1,-1, /* XY origin relative to container TopLeft */ 3,0,JAM1, /* front pen, back pen and drawmode */ 5, /* number of XY vectors */ BorderVectors3, /* pointer to XY vectors */ NULL /* next border in list */ }; struct IntuiText IText3 = { 2,0,JAM2, /* front and back text pens, drawmode and fill byte */ 100,7, /* XY origin relative to container TopLeft */ NULL, /* font pointer or NULL for default */ "View Hall of Fame", /* pointer to text */ NULL /* next IntuiText structure */ }; struct Gadget Gadget2 = { &Gadget3, /* next gadget */ 149,35, /* origin XY of hit box relative to window TopLeft */ 321,20, /* hit box width and height */ NULL, /* gadget flags */ RELVERIFY, /* activation flags */ BOOLGADGET, /* gadget type flags */ (APTR)&Border3, /* gadget border or image to be rendered */ NULL, /* alternate imagery for selection */ &IText3, /* first IntuiText structure */ NULL, /* gadget mutual-exclude long word */ NULL, /* SpecialInfo structure */ NULL, /* user-definable data */ NULL /* pointer to user-definable data */ }; SHORT BorderVectors4[] = { 0,0, 322,0, 322,21, 0,21, 0,0 }; struct Border Border4 = { -1,-1, /* XY origin relative to container TopLeft */ 3,0,JAM1, /* front pen, back pen and drawmode */ 5, /* number of XY vectors */ BorderVectors4, /* pointer to XY vectors */ NULL /* next border in list */ }; struct IntuiText IText4 = { 2,0,JAM2, /* front and back text pens, drawmode and fill byte */ 111,6, /* XY origin relative to container TopLeft */ &TOPAZ80, /* font pointer or NULL for default */ "Start the Game", /* pointer to text */ NULL /* next IntuiText structure */ }; struct Gadget Gadget1 = { &Gadget2, /* next gadget */ 149,13, /* origin XY of hit box relative to window TopLeft */ 321,20, /* hit box width and height */ NULL, /* gadget flags */ RELVERIFY, /* activation flags */ BOOLGADGET, /* gadget type flags */ (APTR)&Border4, /* gadget border or image to be rendered */ NULL, /* alternate imagery for selection */ &IText4, /* first IntuiText structure */ NULL, /* gadget mutual-exclude long word */ NULL, /* SpecialInfo structure */ NULL, /* user-definable data */ NULL /* pointer to user-definable data */ }; #define GadgetList1 Gadget1 struct NewWindow NewWindowStructure1 = { 0,0, /* window XY origin relative to TopLeft of screen */ 640,256, /* window width and height */ 0,1, /* detail and block pens */ GADGETUP, /* IDCMP flags */ ACTIVATE+RMBTRAP, /* other window flags */ &Gadget1, /* first gadget in gadget list */ NULL, /* custom CHECKMARK imagery */ "BLACK NEBULA - CP3060 Graphics Project, Colin Adams", /* window title */ NULL, /* custom screen pointer */ NULL, /* custom bitmap */ 5,5, /* minimum width and height */ -1,-1, /* maximum width and height */ CUSTOMSCREEN /* destination screen type */ }; /* end of PowerWindows source generation */