Skip to Content
The Alchemy Project

struct PSYNERGY_MENU_STATE

The Psynergy menu: its windows, icons and cursors, the party members' tabs and the Psynergy listed for the chosen party member.

Declared in menu_internal.h.

Fields

NameDescription
Uint8unused [8]No view of the menu state names it (see menu/README.md).
Sint32selectedMemberThe party member chosen.
struct WINDOW *moneyWindowSHOP_STATE's; not named here.
struct WINDOW *auxiliaryWindow
WINDOW_SPR *sideIcon [2]Each side's cursor.
Sint8tabIndex [2]Each side's party member, in memberTable.
Sint8sideMemberCount [2]Party members each side chooses from.
struct WINDOW *psynergyWindow
struct WINDOW *statusWindow
struct WINDOW *shortcutWindow
struct WINDOW *infoWindow
struct WINDOW *equipWindowITEM_MENU_STATE's; not named here.
struct WINDOW *listWindow
Uint8itemWindows [12]ITEM_MENU_STATE's modalWindow and the two windows it never opens; not named here.
WINDOW_SPR *entryGridCursor
WINDOW_SPR *entryIcons [32]
WINDOW_SPR *statusIcons [8]ITEM_MENU_STATE's; not named here.
Uint8unusedAfterIcons [36]No view of the menu state names it.
struct WINDOW *msgWindow
Uint8selectedColumnThe cursor grid: its place and its size.
Uint8selectedRow
Uint8columnCount
Uint8rowCount
struct SPR *memberSprites [8]The party members' figures.
Sint16memberX [8]Screen pixels.
Sint16memberY [8]Screen pixels.
FIXEDmemberScale [8]16.16 fixed point, toFIXED(1) full size.
Uint16sideRow [2]Each side's Psynergy row chosen.
Uint16sideAction [2]Each side's Psynergy chosen, as a party member action entry.
WINDOW_SPR *cursorITEM_MENU_STATE's; not named here.
Uint8aroundBackdrop [72]DJINN_MENU_STATE's backdrop pointer at 388; no view names the rest.
Uint16psynergies [32]The chosen party member's Psynergy listed.
Uint16memberTable [8]The party in order (gmPartyListMembers).
Uint8psynergyCount
Uint8memberCount
Uint8memberIds [2]The user and the target: [1] is
WINDOW_SPR *cursorIconMENU_TARGET_WHOLE_PARTY for Psynergy on the whole party.
Uint16flagsbits: 1 the list shows the shortcut help | 0 set after a use or a cancelled target
Uint16skipSlide1 skips the cursor's next slide once.
Uint8figureRow [24]ITEM_MENU_STATE's figures and figureX, the row of four figures; not named here.
Sint16slotY [4]Screen pixels.
Uint8figurePhases [22]ITEM_MENU_STATE's figureScales and DJINN_MENU_STATE's pair; not named here.
Sint16useResultThe use's result message, after MsgItemUseResult.
Sint8equipPreviewITEM_MENU_STATE's; not named here.
Uint8listModeITEM_MENU_STATE's; not named here.
Uint8unusedAfterListMode [2]No view of the menu state names it.
Sint8selectedIndexByMember [8]Each party member's entry chosen last.
Uint8mode0 to use Psynergy; 1 or 2 to set the L or R shortcut.

Description

The Psynergy menu: its windows, icons and cursors, the party members' tabs and the Psynergy listed for the chosen party member.

struct PSYNERGY_MENU_STATE

Referenced by mnCursorCreate(), mnCursorPos(), mnCursorSlide(), mnPsynergyMenuBuildPagedList(), mnPsynergyMenuClassifySelectedPsynergy(), mnPsynergyMenuCloseWindows(), mnPsynergyMenuCreateEntryGrid(), mnPsynergyMenuDrawPage(), mnPsynergyMenuDrawPreparedPsynergyIcons(), mnPsynergyMenuDrawPsynergyIcons(), mnPsynergyMenuPlaceEntryIcons(), mnPsynergyMenuRefreshMemberPsynergy(), mnPsynergyMenuRun(), mnPsynergyMenuRunList(), mnPsynergyMenuRunSteps(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectPartySlot(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenRunPsynergyPage(), mnStatusScreenShowPsynergyRow() and offsetof.

Definition at line 185 of file menu_internal.h.

Fields in detail

unused

Uint8 unused[8]

No view of the menu state names it (see menu/README.md).

selectedMember

Sint32 selectedMember

The party member chosen.

moneyWindow

struct WINDOW *moneyWindow

SHOP_STATE's; not named here.

auxiliaryWindow

struct WINDOW *auxiliaryWindow

sideIcon

WINDOW_SPR *sideIcon[2]

Each side's cursor.

tabIndex

Sint8 tabIndex[2]

Each side's party member, in memberTable.

sideMemberCount

Sint8 sideMemberCount[2]

Party members each side chooses from.

psynergyWindow

struct WINDOW *psynergyWindow

statusWindow

struct WINDOW *statusWindow

shortcutWindow

struct WINDOW *shortcutWindow

infoWindow

struct WINDOW *infoWindow

equipWindow

struct WINDOW *equipWindow

ITEM_MENU_STATE's; not named here.

listWindow

struct WINDOW *listWindow

itemWindows

Uint8 itemWindows[12]

ITEM_MENU_STATE's modalWindow and the two windows it never opens; not named here.

entryGridCursor

WINDOW_SPR *entryGridCursor

entryIcons

WINDOW_SPR *entryIcons[32]

statusIcons

WINDOW_SPR *statusIcons[8]

ITEM_MENU_STATE's; not named here.

unusedAfterIcons

Uint8 unusedAfterIcons[36]

No view of the menu state names it.

msgWindow

struct WINDOW *msgWindow

selectedColumn

Uint8 selectedColumn

The cursor grid: its place and its size.

selectedRow

Uint8 selectedRow

columnCount

Uint8 columnCount

rowCount

Uint8 rowCount

memberSprites

struct SPR *memberSprites[8]

The party members' figures.

memberX

Sint16 memberX[8]

Screen pixels.

memberY

Sint16 memberY[8]

Screen pixels.

memberScale

FIXED memberScale[8]

16.16 fixed point, toFIXED(1) full size.

sideRow

Uint16 sideRow[2]

Each side's Psynergy row chosen.

sideAction

Uint16 sideAction[2]

Each side's Psynergy chosen, as a party member action entry.

cursor

WINDOW_SPR *cursor

ITEM_MENU_STATE's; not named here.

aroundBackdrop

Uint8 aroundBackdrop[72]

DJINN_MENU_STATE's backdrop pointer at 388; no view names the rest.

psynergies

Uint16 psynergies[32]

The chosen party member's Psynergy listed.

memberTable

Uint16 memberTable[8]

The party in order (gmPartyListMembers).

psynergyCount

Uint8 psynergyCount

memberCount

Uint8 memberCount

memberIds

Uint8 memberIds[2]

The user and the target: [1] is

cursorIcon

WINDOW_SPR *cursorIcon

MENU_TARGET_WHOLE_PARTY for Psynergy on the whole party.

flags

Uint16 flags

bits: 1 the list shows the shortcut help | 0 set after a use or a cancelled target

skipSlide

Uint16 skipSlide

1 skips the cursor's next slide once.

figureRow

Uint8 figureRow[24]

ITEM_MENU_STATE's figures and figureX, the row of four figures; not named here.

slotY

Sint16 slotY[4]

Screen pixels.

figurePhases

Uint8 figurePhases[22]

ITEM_MENU_STATE's figureScales and DJINN_MENU_STATE's pair; not named here.

useResult

Sint16 useResult

The use's result message, after MsgItemUseResult.

equipPreview

Sint8 equipPreview

ITEM_MENU_STATE's; not named here.

listMode

Uint8 listMode

ITEM_MENU_STATE's; not named here.

unusedAfterListMode

Uint8 unusedAfterListMode[2]

No view of the menu state names it.

selectedIndexByMember

Sint8 selectedIndexByMember[8]

Each party member's entry chosen last.

mode

Uint8 mode

0 to use Psynergy; 1 or 2 to set the L or R shortcut.