home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
wbgames
/
battlesheep
/
source
/
placegads.h
next >
Wrap
C/C++ Source or Header
|
1977-12-31
|
7KB
|
158 lines
struct IntuiText menuTexts[] = {
{0, 1, JAM2, 0, 1, &Topaz80, "Thinking \273", NULL},
{0, 1, JAM2, 0, 1, &Topaz80, "Sound \273", NULL},
{0, 1, JAM2, 0, 1, &Topaz80, "==========", NULL},
{0, 1, JAM2, 0, 1, &Topaz80, "Quit", NULL},
{0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Dumbest", NULL},
{0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Average", NULL},
{0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Smartest", NULL},
{0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "Off", NULL},
{0, 1, JAM2, CHECKWIDTH, 1, &Topaz80, "On", NULL},
};
#define MW 88
#define SW CHECKWIDTH + 72
#define MH 10
struct MenuItem subItemsA[] = {
{&subItemsA[1], MW-2,-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
~1, &menuTexts[4], NULL, NULL, NULL, NULL},
{&subItemsA[2],MW-2,MH-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
~2, &menuTexts[5], NULL, NULL, NULL, NULL},
{NULL,MW-2,2*MH-2,SW,MH, ITEMTEXT|CHECKIT|CHECKED|ITEMENABLED|HIGHCOMP,
~4, &menuTexts[6], NULL, NULL, NULL, NULL},
};
struct MenuItem subItemsB[] = {
{&subItemsB[1], MW-2,-2,SW,MH, ITEMTEXT|CHECKIT|ITEMENABLED|HIGHCOMP,
~1, &menuTexts[7], NULL, NULL, NULL, NULL},
{NULL,MW-2,MH-2,SW,MH, ITEMTEXT|CHECKIT|CHECKED|ITEMENABLED|HIGHCOMP,
~2, &menuTexts[8], NULL, NULL, NULL, NULL},
};
struct MenuItem items[] = {
{&items[1], 0, 0, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
0, &menuTexts[0], NULL, NULL, &subItemsA[0], NULL},
{&items[2], 0, MH, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
0, &menuTexts[1], NULL, NULL, &subItemsB[0], NULL},
{&items[3], 0, 2*MH, MW, MH, ITEMTEXT|ITEMENABLED,
0, &menuTexts[2], NULL, NULL, NULL, NULL},
{NULL, 0, 3*MH, MW, MH, ITEMTEXT|ITEMENABLED|HIGHCOMP,
0, &menuTexts[3], NULL, NULL, NULL, NULL},
};
struct Menu strip = { NULL, 2, 0, 0, MH, MENUENABLED, "Game", &items[0]};
#define SETUP 100
UWORD dat1[] = {0,11, 0,0, 118,0};
UWORD dat2[] = {1,10, 1,1};
UWORD dat3[] = {1,11, 119,11, 119,0};
UWORD dat4[] = {118,1, 118,10};
struct Border gbA = {0, 0, 2, 0, JAM2, 3, dat1, NULL};
struct Border gbB = {0, 0, 2, 0, JAM2, 2, dat2, &gbA};
struct Border gbC = {0, 0, 1, 0, JAM2, 3, dat3, &gbB};
struct Border gbD = {0, 0, 1, 0, JAM2, 2, dat4, &gbC};
struct IntuiText gtxt = {1,0,JAM2,36,2,&Topaz80,"Set Up", NULL};
struct Gadget gad = {NULL, 15, 157, 120, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &gbD, NULL, >xt, NULL,
NULL, SETUP, NULL};
#define UP_GAD 200
#define DN_GAD 201
#define LT_GAD 202
#define RT_GAD 203
#define RN_GAD 204
#define RO_GAD 205
#define QT_GAD 211
#define S6_GAD 206
#define S5_GAD 207
#define S4_GAD 208
#define S3_GAD 209
#define S2_GAD 210
static UWORD bdata1[] = {0,11, 0,0, 48,0};
static UWORD bdata2[] = {1,1, 1,10};
static UWORD bdata3[] = {1,11, 49,11, 49,0};
static UWORD bdata4[] = {48,1, 48,10};
static UWORD bdata5[] = {0,11, 0,0, 98,0};
static UWORD bdata6[] = {1,1, 1,10};
static UWORD bdata7[] = {1,11, 99,11, 99,0};
static UWORD bdata8[] = {98,1, 98,10};
static struct Border b1 = {0, 0, 2, 0, JAM2, 3, bdata1, NULL,};
static struct Border b2 = {0, 0, 2, 0, JAM2, 2, bdata2, &b1,};
static struct Border b3 = {0, 0, 1, 0, JAM2, 3, bdata3, &b2,};
static struct Border b4 = {0, 0, 1, 0, JAM2, 2, bdata4, &b3,};
static struct Border b5 = {0, 0, 2, 0, JAM2, 3, bdata5, NULL,};
static struct Border b6 = {0, 0, 2, 0, JAM2, 2, bdata6, &b5,};
static struct Border b7 = {0, 0, 1, 0, JAM2, 3, bdata7, &b6,};
static struct Border b8 = {0, 0, 1, 0, JAM2, 2, bdata8, &b7,};
static struct IntuiText tx1 = {1, 0, JAM2, 17, 2, &Topaz80, "UP", NULL};
static struct IntuiText tx2 = {1, 0, JAM2, 9, 2, &Topaz80, "DOWN", NULL};
static struct IntuiText tx3 = {1, 0, JAM2, 9, 2, &Topaz80, "LEFT", NULL};
static struct IntuiText tx4 = {1, 0, JAM2, 5, 2, &Topaz80, "RIGHT", NULL};
static struct IntuiText tx5 = {1, 0, JAM2, 9, 2, &Topaz80, "Rand", NULL};
static struct IntuiText tx6 = {1, 0, JAM2, 9, 2, &Topaz80, "Turn", NULL};
static struct IntuiText tx7 = {1, 0, JAM2, 14,2,&Topaz80,"Big Daddy",NULL};
static struct IntuiText tx8 = {1, 0, JAM2, 18, 2,&Topaz80,"Mathilda",NULL};
static struct IntuiText tx9 = {1, 0, JAM2, 18, 2,&Topaz80,"Lamikins",NULL};
static struct IntuiText tx10= {1, 0, JAM2, 22, 2,&Topaz80,"Lil Sis",NULL,};
static struct IntuiText tx11= {1, 0, JAM2, 22, 2,&Topaz80,"Baaa-by",NULL,};
static struct IntuiText tx12= {1, 0, JAM2, 9, 2,&Topaz80,"Okay",NULL,};
struct Gadget g1 = {NULL, 93, 91, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx1, NULL,
NULL, UP_GAD, NULL,};
struct Gadget g2 = {&g1, 93, 117, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx2, NULL,
NULL, DN_GAD, NULL,};
struct Gadget g3 = {&g2, 55, 104, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx3, NULL,
NULL, LT_GAD, NULL,};
struct Gadget g4 = {&g3, 131, 104, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx4, NULL,
NULL, RT_GAD, NULL,};
struct Gadget g5 = {&g4, 55, 139, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx5, NULL,
NULL, RN_GAD, NULL,};
struct Gadget g6 = {&g5, 131, 139, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx6, NULL,
NULL, RO_GAD, NULL,};
struct Gadget g7 = {&g6, 360, 88, 100, 12,
GFLG_GADGHCOMP | GFLG_SELECTED, GACT_RELVERIFY | GACT_TOGGLESELECT,
GTYP_BOOLGADGET, &b8, NULL, &tx7, NULL, NULL, S6_GAD, NULL,};
struct Gadget g8 = {&g7, 360, 101, 100, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx8,
NULL, NULL, S5_GAD, NULL,};
struct Gadget g9 = {&g8, 360, 114, 100, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx9,
NULL, NULL, S4_GAD, NULL,};
struct Gadget g10 = {&g9, 360, 127, 100, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx10,
NULL, NULL, S3_GAD, NULL,};
struct Gadget g11 = {&g10, 360, 140, 100, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY | GACT_TOGGLESELECT, GTYP_BOOLGADGET, &b8, NULL, &tx11,
NULL, NULL, S2_GAD, NULL,};
struct Gadget g12 = {&g11, 235, 114, 50, 12, GFLG_GADGHCOMP,
GACT_RELVERIFY, GTYP_BOOLGADGET, &b4, NULL, &tx12, NULL,
NULL, QT_GAD, NULL,};
static UWORD __chip pnt[] = {
0x0000, 0x0000,
0x0400, 0x07C0,
0x0000, 0x07C0,
0x0100, 0x0380,
0x0000, 0x07E0,
0x07C0, 0x1FF8,
0x1FF0, 0x3FEC,
0x3FF8, 0x7FDE,
0x3FF8, 0x7FBE,
0x7FFC, 0xFF7F,
0x7EFC, 0xFFFF,
0x7FFC, 0xFFFF,
0x3FF8, 0x7FFE,
0x3FF8, 0x7FFE,
0x1FF0, 0x3FFC,
0x07C0, 0x1FF8,
0x0000, 0x07E0,
0x0000, 0x0000,
};