struct DJINN_MENU_STATE
The Djinn menu's state, in the HEAP_SLOT_MENU heap slot from the menu's opening to its closing, laid out as ITEM_MENU_STATE is: it names only what the Djinn screen reads, and says whose the rest is.
Declared in djinn_menu.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unused [8] | No view of the menu state names it. |
Sint32 | member | The party member whose Djinn are shown. |
Sint32 | moneyWindow | SHOP_STATE's; not named here. |
Sint32 | statusWindow | The top-left window, 13 by 5 tiles (mnCursorCreate): the party member's name, level and class, and "Current status" while a preview shows no change. |
struct WINDOW_SPR * | cursor | The hand cursor in statusWindow. |
struct WINDOW_SPR * | secondSideIcon | The second of ITEM_MENU_STATE's sideIcons; not named here. |
Sint8 | selectedColumn [2] | Each side's party member, an index into members. |
Sint8 | sideCount [2] | ITEM_MENU_STATE's; not named here. |
Uint8 | unusedAfterSides [4] | No view of the menu state names it. |
Sint32 | itemWindow | ITEM_MENU_STATE's and SHOP_STATE's; not named here. |
Sint32 | window | The preview's left half, 15 by 15 tiles from tile row 5: the party member's portrait, class and stats. |
Sint32 | unopenedWindow | Never given a window (mnItemMenuInit clears it); the preview only redraws it. |
Sint32 | infoWindow | ITEM_MENU_STATE's; not named here. |
Sint32 | listWindow | The Djinn list, 30 by 15 tiles under the top windows: the party's figures, their Djinn and the chosen Djinni's effect when unleashed. |
DJINN_PREVIEW_WINDOW * | secondWindow | The preview's right half, beside window: the Psynergy and its PP, with page numbers over it. |
Uint8 | itemWindows [16] | ITEM_MENU_STATE's last windows |
struct WINDOW_SPR * | entryIcons [32] | and its icons; not named here. |
Uint8 | unusedAfterIcons [36] | No view of the menu state |
Sint32 | helpWindow | names it. |
Uint8 | cursorGrid [4] | ITEM_MENU_STATE's cursor grid; not named here. |
void * | memberSprites [8] | The party members' figures and where they stand on screen, in pixels. |
Sint16 | memberX [8] | |
Sint16 | memberY [8] | |
FIXED | memberScale [8] | ITEM_MENU_STATE's; not named here. |
Sint16 | memberSpriteIds [8] | ITEM_MENU_STATE's; not named here. |
Uint16 | selection [2] | Each side's cursor (DJINN_CURSOR_ROW_STRIDE). |
Uint16 | pairEntries [2] | Each side's chosen list entry. |
struct WINDOW_SPR * | secondCursor | The Status menu's portrait |
Uint8 | unusedBeforeArrows [4] | (STATUS_SCREEN_STATE.statusCursor), hidden while its Djinn list shows. |
struct WINDOW_SPR * | pageArrows [2] | The up and down arrows |
DJINN_MENU_BACKDROP * | backdrop | beside the party row (mnCursorCreate). |
Uint8 | unusedAfterBackdrop [64] | No view of the menu state names it. |
Uint16 | entries [32] | ITEM_MENU_STATE's items; not named here. |
Uint16 | members [DJINN_LIST_MEMBERS] | The party in order. |
Uint8 | itemCount | ITEM_MENU_STATE's; not |
Uint8 | memberCount | read here. |
Uint8 | shownMember [2] | The party member giving and the one receiving. |
struct WINDOW_SPR * | selectedIcon | ITEM_MENU_STATE's selectedItemIcon; not named here. |
Uint16 | pending | DJINN_PENDING bits. |
Sint16 | completionFlag | ITEM_MENU_STATE's; not named here. |
void * | figures [4] | ITEM_MENU_STATE's; not named here. |
Uint16 | slotX [4] | |
Uint16 | slotY [4] | |
Sint32 | figurePhases [4] | ITEM_MENU_STATE's figureScales; not named here. |
Uint16 | figureFacings [4] | ITEM_MENU_STATE's; not named here. |
Uint8 | pairIndex [2] | The Djinn chosen on each side: index in their element, element, party member. |
Uint8 | pairElement [2] | |
Uint8 | pairMember [2] | |
Sint16 | msgOffset | ITEM_MENU_STATE's; not named here. |
Description
The Djinn menu's state, in the HEAP_SLOT_MENU heap slot from the menu's
opening to its closing, laid out as ITEM_MENU_STATE is: it names only what
the Djinn screen reads, and says whose the rest is.
struct DJINN_MENU_STATE
Referenced by mnDjinnCountOwned(), mnDjinnMarkTradeOnlyRecipients(), mnDjinnMenuDrawPage(), mnDjinnMenuDrawPairPreview(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuPlacePartyFigures(), mnDjinnMenuRun(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnDjinnMenuShowMemberStatus(), mnOpenBackdropScreen() and mnStatusScreenShowDjinnList().
Definition at line 113 of file djinn_menu.h.
Fields in detail
unused
Uint8 unused[8]
No view of the menu state names it.
member
Sint32 member
The party member whose Djinn are shown.
moneyWindow
Sint32 moneyWindow
SHOP_STATE's; not named here.
statusWindow
Sint32 statusWindow
The top-left window, 13 by 5
tiles (mnCursorCreate): the
party member's name, level and
class, and "Current status"
while a preview shows no
change.
cursor
struct WINDOW_SPR *cursor
The hand cursor in statusWindow.
secondSideIcon
struct WINDOW_SPR *secondSideIcon
The second of
ITEM_MENU_STATE's sideIcons;
not named here.
selectedColumn
Sint8 selectedColumn[2]
Each side's party member, an index into members.
sideCount
Sint8 sideCount[2]
ITEM_MENU_STATE's; not named
here.
unusedAfterSides
Uint8 unusedAfterSides[4]
No view of the menu state names it.
itemWindow
Sint32 itemWindow
ITEM_MENU_STATE's and
SHOP_STATE's; not named here.
window
Sint32 window
The preview's left half, 15 by
15 tiles from tile row 5: the
party member's portrait, class
and stats. In the Status
menu's Djinn list
(mnStatusScreenShowDjinnList),
the status window the list is
drawn over.
unopenedWindow
Sint32 unopenedWindow
Never given a window
(mnItemMenuInit clears it);
the preview only redraws it.
infoWindow
Sint32 infoWindow
ITEM_MENU_STATE's; not named
here.
listWindow
Sint32 listWindow
The Djinn list, 30 by 15 tiles under the top windows: the party's figures, their Djinn and the chosen Djinni's effect when unleashed.
secondWindow
DJINN_PREVIEW_WINDOW *secondWindow
The preview's right half, beside window: the Psynergy and its PP, with page numbers over it.
itemWindows
Uint8 itemWindows[16]
ITEM_MENU_STATE's last windows
entryIcons
struct WINDOW_SPR *entryIcons[32]
and its icons; not named here.
unusedAfterIcons
Uint8 unusedAfterIcons[36]
No view of the menu state
helpWindow
Sint32 helpWindow
names it.
cursorGrid
Uint8 cursorGrid[4]
ITEM_MENU_STATE's cursor
grid; not named here.
memberSprites
void *memberSprites[8]
The party members' figures and where they stand on screen, in pixels.
memberX
Sint16 memberX[8]
memberY
Sint16 memberY[8]
memberScale
FIXED memberScale[8]
ITEM_MENU_STATE's; not named
here.
memberSpriteIds
Sint16 memberSpriteIds[8]
ITEM_MENU_STATE's; not named
here.
selection
Uint16 selection[2]
Each side's cursor
(DJINN_CURSOR_ROW_STRIDE).
pairEntries
Uint16 pairEntries[2]
Each side's chosen list entry.
secondCursor
struct WINDOW_SPR *secondCursor
The Status menu's portrait
unusedBeforeArrows
Uint8 unusedBeforeArrows[4]
(STATUS_SCREEN_STATE.statusCursor),
hidden while its Djinn list shows.
No view of the menu state names it.
pageArrows
struct WINDOW_SPR *pageArrows[2]
The up and down arrows
backdrop
DJINN_MENU_BACKDROP *backdrop
beside the party row
(mnCursorCreate).
unusedAfterBackdrop
Uint8 unusedAfterBackdrop[64]
No view of the menu state names it.
entries
Uint16 entries[32]
ITEM_MENU_STATE's
items; not named here.
members
Uint16 members[DJINN_LIST_MEMBERS]
The party in order.
itemCount
Uint8 itemCount
ITEM_MENU_STATE's; not
memberCount
Uint8 memberCount
read here.
shownMember
Uint8 shownMember[2]
The party member giving and the one receiving.
selectedIcon
struct WINDOW_SPR *selectedIcon
ITEM_MENU_STATE's
selectedItemIcon; not
named here.
pending
Uint16 pending
DJINN_PENDING bits.
completionFlag
Sint16 completionFlag
ITEM_MENU_STATE's; not
named here.
figures
void *figures[4]
ITEM_MENU_STATE's; not named here.
slotX
Uint16 slotX[4]
slotY
Uint16 slotY[4]
figurePhases
Sint32 figurePhases[4]
ITEM_MENU_STATE's figureScales;
not named here.
figureFacings
Uint16 figureFacings[4]
ITEM_MENU_STATE's; not named
here.
pairIndex
Uint8 pairIndex[2]
The Djinn chosen on each side: index in their element, element, party member.
pairElement
Uint8 pairElement[2]
pairMember
Uint8 pairMember[2]
msgOffset
Sint16 msgOffset
ITEM_MENU_STATE's; not named here.