home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
prog
/
source
/
cxercise.lha
/
MENUSTRU.H
< prev
next >
Wrap
C/C++ Source or Header
|
1987-04-20
|
4KB
|
138 lines
/*********************************************
* *
* MenuStrip structure static initialization. *
* *
*********************************************/
struct IntuiText MenuText[] =
{
/* FrontPen, BackPen, DrawMode, LeftEdge, TopEdge,
*ITextFont, *IText, *NText */
{ 0, 1, JAM1, CHECKWIDTH, 0, NULL, "Morning Star "},
{ 0, 1, JAM1, CHECKWIDTH, 0, NULL, "Long Sword "},
{ 0, 1, JAM1, CHECKWIDTH, 0, NULL, "Dagger "},
{ 0, 1, JAM1, CHECKWIDTH, 0, NULL, "None "},
{ 0, 1, JAM1, 0, 0, NULL, "Possessions "},
{ 0, 1, JAM1, 0, 0, NULL, "Pockets "},
{ 0, 1, JAM1, 0, 0, NULL, "BackPack "},
{ 0, 1, JAM1, 0, 0, NULL, "Personal "},
{ 0, 1, JAM1, 0, 0, NULL, "Health "},
{ 0, 1, JAM1, 0, 0, NULL, "Hits "},
{ 0, 1, JAM1, 0, 0, NULL, "Heal "},
{ 0, 1, JAM1, 0, 0, NULL, "Light "}
};
/* MenuItem initializations: */
struct MenuItem MenuItem[12] =
{
/* Menu[0]: Weapons */
/* MI[0]: Morning Star */
/* *NextItem, LeftEdge, TopEdge, Width, Height, */
{ &MenuItem[1], 0, 0, (120 + CHECKWIDTH + COMMWIDTH), 9,
/* Flags: */
(CHECKIT | CHECKED | ITEMTEXT | COMMSEQ | ITEMENABLED | HIGHCOMP),
0x0A, /* MutualExclude (a 32 bit flag variable) */
(APTR) &MenuText[0], /* ItemFill-> ( Image | (IntuiText) | NULL ) */
NULL, /* SelectFill-> ( Image | IntuiText | (NULL) ) */
/* Command - A single char that enables this item to be selected from
the keyboard. (Hold the right Amiga 'A' and press Command char.) */
'S'
},
{ /* MI[1]: Long Sword */
&MenuItem[2], 0, 9, (120 + CHECKWIDTH + COMMWIDTH), 9,
(CHECKIT | ITEMTEXT | COMMSEQ | ITEMENABLED | HIGHCOMP),
0x09, (APTR) &MenuText[1], NULL, 'L'
},
{ /* MI[2]: Dagger */
&MenuItem[3], 0, 18, (120 + CHECKWIDTH + COMMWIDTH), 9,
(CHECKIT | ITEMTEXT | COMMSEQ | ITEMENABLED | HIGHCOMP),
0x08, (APTR) &MenuText[2], NULL, 'D'
},
{ /* MI[3]: None */
NULL, 0, 27, (120 + CHECKWIDTH + COMMWIDTH), 9,
(CHECKIT | ITEMTEXT | COMMSEQ | ITEMENABLED | HIGHCOMP),
0x0F, (APTR) &MenuText[3], NULL, 'U'
},
/* Menu [1]: Inventory */
{ /* MI[4]: Possessions */
&MenuItem[7], 0, 0, 120, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[4], NULL, NULL, &MenuItem[5]
},
{ /* MI[5]: subitem : Pockets*/
&MenuItem[6], 110, 4, 90, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[5]
},
{ /* MI[6]: subitem: Backpack */
NULL, 110, 13, 90, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[6]
},
{ /* MI[7]: Personal */
NULL, 0, 9, 120, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[7], NULL, NULL, &MenuItem[8]
},
{ /* MI[8]: subitem: Health */
&MenuItem[9], 110, 4, 70, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[8]
},
{ /* MI[9]: subitem Hits */
NULL, 110, 13, 70, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[9]
},
/* Menu[2]: Magicks */
{ /* MI[10]: Heal */
&MenuItem[11], 0, 0, 80, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[10]
},
{ /* MI[11]: Light */
NULL, 0, 9, 80, 9,
(ITEMTEXT | ITEMENABLED | HIGHCOMP),
NULL, (APTR) &MenuText[11]
}
};
/* Menu structure initializations: */
struct Menu Menu[3] =
{
{ /* Menu[0]: Weapons */
&Menu[1],
0, 0, 80, 0,
MENUENABLED,
"Weapons ",
&MenuItem[0]
},
{ /* Menu[1]: Inventory */
&Menu[2],
100, 0, 100, 0,
MENUENABLED,
"Inventory ",
&MenuItem[4]
},
{ /* Menu[2]: Magicks */
NULL,
220, 0, 80, 0,
MENUENABLED,
"Magicks ",
&MenuItem[10]
},
};
struct Menu *MyMenu = &Menu[0]; /* Define and init pointer to entire menu
structure. */