Alchemy

djinn_menu.h

games/tbs/include/djinn_menu.h on GitHub

Structures

DjinnListTable

struct DjinnListTable

The Djinn menu's lists: each party member's Djinn entries and their count.

FieldDeclared as
idsu16 ids[DJINN_LIST_OWNERS][DJINN_LIST_ROWS]
countss8 counts[DJINN_LIST_OWNERS]

Used by DjinnMenu_BuildLists, DjinnMenu_DrawElementList.

Line 23

DjinnMenuBackdrop

struct DjinnMenuBackdrop

The Djinn menu's lists, the field tiles and palette it restores on closing, and the tutorial's state.

FieldDeclared as
liststruct DjinnListTable list
tilesu8 tiles[0x2000]
paletteu16 palette[64]
tutorialTimers32 tutorialTimerframes into the tutorial's current step
tutorialSteplong tutorialStepThe Djinn tutorial's step: 0 outside it, else 1, 14, 27 or 28 to start, by flags 0x16f and 0x171.

Used by DjinnMenu_Run, DjinnMenu_SelectDjinn, Menu_OpenBackdropScreen, OwnerAction_RunCompareLoop.

Line 30

DjinnMenuWork

struct DjinnMenuWork

The Djinn menu's work, in the HEAP_SLOT_MENU work slot.

FieldDeclared as
unk000u8 unk000[8]not named by TBS code
owners32 owner
unk00cu8 unk00c[4]not named by TBS code
statusWindowstruct UiWindow *statusWindow
cursorstruct RenderOutput *cursor
unk018u8 unk018[4]not named by TBS code
selectedColumns8 selectedColumn[2]each pane's member, in owners
unk01eu8 unk01e[6]not named by TBS code
windowstruct UiWindow *window
unknownWindow028struct UiWindow *unknownWindow028
unk02cu8 unk02c[4]not named by TBS code
listWindowstruct UiWindow *listWindow
secondWindowstruct UiWindow *secondWindow
unk038u8 unk038[0xd4]not named by TBS code
helpWindowstruct UiWindow *helpWindow
unk110u8 unk110[0x24]not named by TBS code
ownerXs16 ownerX[8]screen pixels
ownerYs16 ownerY[8]screen pixels
unk154u8 unk154[0x20]not named by TBS code
selectionu16 selection[2]each pane's Djinni row chosen
pairEntriesu16 pairEntries[2]255 at first
secondCursorstruct RenderOutput *secondCursor
unk180u8 unk180[0x04]not named by TBS code
backdropstruct DjinnMenuBackdrop *backdrop
unk188u8 unk188[0x80]not named by TBS code
ownersu16 owners[DJINN_LIST_OWNERS]the party in order
pairCountu8 pairCount
ownerCountu8 ownerCount
shownOwneru8 shownOwner[2]the member giving and the one receiving
unk21cu8 unk21c[4]not named by TBS code
pendingu16 pendingbits: 1 a give or trade awaits its confirmation | 0 a second Djinni is to be chosen
unk222u8 unk222[0x12]not named by TBS code
slotXu16 slotX[4]
slotYu16 slotY[4]
unk244u8 unk244[0x10]not named by TBS code
pairIndexu8 pairIndex[2]The Djinn chosen in each pane: index in their element, element, owner. @{
pairElementu8 pairElement[2]
pairOwneru8 pairOwner[2]not named by TBS code

Used by DjinnMenu_BuildLists, DjinnMenu_DrawElementList, DjinnMenu_DrawPairPreview, DjinnMenu_DrawStatPreview, DjinnMenu_Run, DjinnMenu_RunScreen, DjinnMenu_SelectDjinn, DjinnMenu_ShowCurrentList, DjinnMenu_ShowHelp, DjinnMenu_ShowOwnerStatus, Djinn_CheckTurnBalance, Djinn_CountTurns, Djinn_MarkBalancedEntries, Menu_OpenBackdropScreen, Menu_SetFirstObjectRowCoordinates, OwnerAction_RunCompareLoop.

Line 41

Macros, without a comment: DJINN_ENTRY_INDEX, DJINN_ENTRY_ELEMENT, DJINN_ENTRY_OWNER, DJINN_ENTRY_IS_SET, DJINN_ELEMENTS, DJINN_PER_ELEMENT, DJINN_LIST_OWNERS, DJINN_LIST_ROWS.

On this page