Skip to Content
The Alchemy Project

src/window/screens_battle_djinn_menu.c

The battle Djinn menu. More…

Included by screens.c.

Macros

NameDescription
#defineDJINN_LIST_X JAPANESE_OR(21, 20)The Japanese list window is 9 tiles wide from column 21 and a recovering Djinni's turns stand at x 40.
#defineDJINN_LIST_WIDTH JAPANESE_OR(9, 10)
#defineDJINN_TURNS_X JAPANESE_OR(40, 48)
#defineDJINN_MENU_ARROW_VRAM

Functions

NameDescription
Sint32mnBattleDjinnMenuRun (Sint32 member, Sint32 unused)The battle Djinn menu for unit member: its Djinn in element and number order, five to a page, set ones plain, standby ones in TEXT_COLOR_RED and recovering ones in TEXT_COLOR_YELLOW with their turns, the one under the cursor described above the list with its change preview beside it (mnBattleDjinnMenuShowChangePreview; holding R shows the Psynergy pages, Left and Right turn them).

Description

The battle Djinn menu. Part of screens.c.

Macros in detail

DJINN_LIST_X

#define DJINN_LIST_X JAPANESE_OR(21, 20)

The Japanese list window is 9 tiles wide from column 21 and a recovering Djinni's turns stand at x 40.

Referenced by mnBattleDjinnMenuRun().

Definition at line 5 of file screens_battle_djinn_menu.c.

DJINN_LIST_WIDTH

#define DJINN_LIST_WIDTH JAPANESE_OR(9, 10)

Referenced by mnBattleDjinnMenuRun().

Definition at line 6 of file screens_battle_djinn_menu.c.

DJINN_TURNS_X

#define DJINN_TURNS_X JAPANESE_OR(40, 48)

Referenced by mnBattleDjinnMenuRun().

Definition at line 7 of file screens_battle_djinn_menu.c.

DJINN_MENU_ARROW_VRAM

#define DJINN_MENU_ARROW_VRAM

Referenced by mnBattleDjinnMenuRun().

Definition at line 9 of file screens_battle_djinn_menu.c.

Functions in detail

mnBattleDjinnMenuRun

Sint32 mnBattleDjinnMenuRun(Sint32 member, Sint32 unused)

The battle Djinn menu for unit member: its Djinn in element and number order, five to a page, set ones plain, standby ones in TEXT_COLOR_RED and recovering ones in TEXT_COLOR_YELLOW with their turns, the one under the cursor described above the list with its change preview beside it (mnBattleDjinnMenuShowChangePreview; holding R shows the Psynergy pages, Left and Right turn them). The battle commands pass 1 as unused, which no code reads.

References DjinnMenuBlinkTile, DjinnMenuElementXOffsets, DjinnMenuElementYOffsets, gmDjinnGetRecoveryTableStub(), gmUnitGet(), mnBattleDjinnMenuShowChangePreview(), mnMessageArgumentClearAll(), mnMessageArgumentPush(), mnMessageCopyExpanded(), mnTextDrawMessageAsTiles(), mnTextDrawNumberAtOffset(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnTextSetColor(), mnTextUseExtraTiles(), mnWindowClose(), mnWindowCreate(), mnWindowHighlightRect(), mnWindowMarkVisibleTextTiles(), mnWindowSetTilemapEntry(), mnWindowSpriteClearList(), mnWindowSpriteRedrawSavedRect(), PerWork, PointingHandTiles, Sint32, syHeapAllocateEWRAM(), syHeapRelease(), syInputResetKeyRepeat(), syOAMAddSpriteAtDepth(), sySoundPlayStub(), sySynch(), syVRAMCacheAllocateEntry(), syVRAMCacheFreeEntry(), syVRAMCacheReload() and TickCount.

Referenced by mnBattleCollectPartyCommands().

Definition at line 19 of file screens_battle_djinn_menu.c.