Skip to Content
The Alchemy Project

struct DJINN_MENU_STATE

The Djinn menu's state, in the HEAP_SLOT_MENU heap slot from the menu's opening to its closing.

Declared in djinn_menu.h.

Fields

NameDescription
Uint8unused [8]No view of the menu state names it (see
Sint32membermenu/README.md).
struct WINDOW *moneyWindowSHOP_STATE's; not named here.
struct WINDOW *statusWindow
WINDOW_SPR *cursor
WINDOW_SPR *secondSideIconThe second of ITEM_MENU_STATE's sideIcons; not named here.
Sint8selectedColumn [2]Each side's party member, an index into party members.
Sint8sideCount [2]ITEM_MENU_STATE's; not named here.
struct WINDOW *itemWindowITEM_MENU_STATE's and
struct WINDOW *windowSHOP_STATE's itemWindow; not named here.
struct WINDOW *unopenedWindowNever given a window, so NULL from mnInitState on; the preview still redraws it, which reads the window's place from the BIOS.
struct WINDOW *infoWindowITEM_MENU_STATE's; not named here.
struct WINDOW *listWindow
struct WINDOW *secondWindow
Uint8itemWindows [16]ITEM_MENU_STATE's last windows and its icons; not named here.
WINDOW_SPR *entryIcons [32]
WINDOW_SPR *statusIcons [8]
Uint8unusedAfterIcons [36]No view of the menu state
struct WINDOW *helpWindownames it.
Uint8cursorGrid [4]ITEM_MENU_STATE's cursor grid, selectedColumn to rowCount; not named here.
struct SPR *memberSprites [8]ITEM_MENU_STATE's party figures; not named here.
Sint16memberX [8]Screen pixels.
Sint16memberY [8]Screen pixels.
Sint32memberScale [8]ITEM_MENU_STATE's; not named here.
Uint16selection [2]Each side's Djinni row chosen.
Uint16pairEntries [2]255 at first.
WINDOW_SPR *secondCursor
Uint8unusedBeforeBackdrop [4]No view of the menu state
DJINN_MENU_BACKDROP *backdropnames it.
Uint8unusedAfterBackdrop [64]No view of the menu state names it.
Uint16entries [32]ITEM_MENU_STATE's items; not named here.
Uint16members [DJINN_LIST_MEMBERS]The party in order.
Uint8pairCount
Uint8memberCount
Uint8shownMember [2]The party member giving and the one receiving.
WINDOW_SPR *selectedIconITEM_MENU_STATE's selectedItemIcon; not named here.
Uint16pendingDJINN_PENDING bits.
Sint16completionFlagITEM_MENU_STATE's; not named here.
struct SPR *figures [4]The row of four figures over the Djinn columns (menu_djinn_figures.c), each one's sprite and place in screen pixels: ITEM_MENU_STATE's figures, figureX and figureY.
Uint16slotX [4]
Uint16slotY [4]
Sint32figureScales [4]ITEM_MENU_STATE's figureScales; not named here.
Uint8pairIndex [2]The Djinn chosen in each side: index in their element, element, party member.
Uint8pairElement [2]
Uint8pairMember [2]

Description

The Djinn menu's state, in the HEAP_SLOT_MENU heap slot from the menu's opening to its closing.

struct DJINN_MENU_STATE

Referenced by mnDjinnCheckGiveBalance(), mnDjinnCountOwned(), mnDjinnMarkTradeOnlyRecipients(), mnDjinnMenuBuildLists(), mnDjinnMenuDrawElementList(), mnDjinnMenuDrawPairPreview(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuPlacePartyFigures(), mnDjinnMenuRun(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnDjinnMenuShowMemberStatus(), mnOpenBackdropScreen() and mnStatusScreenShowDjinnList().

Definition at line 51 of file djinn_menu.h.

Fields in detail

unused

Uint8 unused[8]

No view of the menu state names it (see

member

Sint32 member

menu/README.md).

moneyWindow

struct WINDOW *moneyWindow

SHOP_STATE's; not named here.

statusWindow

struct WINDOW *statusWindow

cursor

WINDOW_SPR *cursor

secondSideIcon

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 party members.

sideCount

Sint8 sideCount[2]

ITEM_MENU_STATE's; not named here.

itemWindow

struct WINDOW *itemWindow

ITEM_MENU_STATE's and

window

struct WINDOW *window

SHOP_STATE's itemWindow; not named here.

unopenedWindow

struct WINDOW *unopenedWindow

Never given a window, so NULL from mnInitState on; the preview still redraws it, which reads the window's place from the BIOS.

infoWindow

struct WINDOW *infoWindow

ITEM_MENU_STATE's; not named here.

listWindow

struct WINDOW *listWindow

secondWindow

struct WINDOW *secondWindow

itemWindows

Uint8 itemWindows[16]

ITEM_MENU_STATE's last windows and its icons; not named here.

entryIcons

WINDOW_SPR *entryIcons[32]

statusIcons

WINDOW_SPR *statusIcons[8]

unusedAfterIcons

Uint8 unusedAfterIcons[36]

No view of the menu state

helpWindow

struct WINDOW *helpWindow

names it.

cursorGrid

Uint8 cursorGrid[4]

ITEM_MENU_STATE's cursor grid, selectedColumn to rowCount; not named here.

memberSprites

struct SPR *memberSprites[8]

ITEM_MENU_STATE's party figures; not named here.

memberX

Sint16 memberX[8]

Screen pixels.

memberY

Sint16 memberY[8]

Screen pixels.

memberScale

Sint32 memberScale[8]

ITEM_MENU_STATE's; not named here.

selection

Uint16 selection[2]

Each side's Djinni row chosen.

pairEntries

Uint16 pairEntries[2]

255 at first.

secondCursor

WINDOW_SPR *secondCursor

unusedBeforeBackdrop

Uint8 unusedBeforeBackdrop[4]

No view of the menu state

backdrop

DJINN_MENU_BACKDROP *backdrop

names it.

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.

pairCount

Uint8 pairCount

memberCount

Uint8 memberCount

shownMember

Uint8 shownMember[2]

The party member giving and the one receiving.

selectedIcon

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

struct SPR *figures[4]

The row of four figures over the Djinn columns (menu_djinn_figures.c), each one's sprite and place in screen pixels: ITEM_MENU_STATE's figures, figureX and figureY.

slotX

Uint16 slotX[4]

slotY

Uint16 slotY[4]

figureScales

Sint32 figureScales[4]

ITEM_MENU_STATE's figureScales; not named here.

pairIndex

Uint8 pairIndex[2]

The Djinn chosen in each side: index in their element, element, party member.

pairElement

Uint8 pairElement[2]

pairMember

Uint8 pairMember[2]