Skip to Content
The Alchemy Project

src/window/screens_battle_summon_menu.c

The battle summon menu. More…

Included by screens.c.

Macros

NameDescription
#defineSUMMON_MENU_WINDOW_X JAPANESE_OR(14, 13)Where the Japanese layout differs: the summon list's window and its Djinn costs, in tiles.
#defineSUMMON_MENU_WINDOW_WIDTH JAPANESE_OR(16, 17)
#defineSUMMON_COST_X JAPANESE_OR(10, 11)

Functions

NameDescription
Sint32mnBattleSummonMenuRun (Sint32 unusedA, Sint32 unusedB, const Uint8 *standby)The battle summon list: the summons the party holds enough Djinn for (gmSummonListLearnedStub, DJINN_RECOVERY_TABLE.summonMask), four to a page, those standby can pay for first, each with its Djinn cost by element, the others in TEXT_COLOR_RED.

Description

The battle summon menu. Part of screens.c.

Macros in detail

SUMMON_MENU_WINDOW_X

#define SUMMON_MENU_WINDOW_X JAPANESE_OR(14, 13)

Where the Japanese layout differs: the summon list's window and its Djinn costs, in tiles.

Referenced by mnBattleSummonMenuRun().

Definition at line 5 of file screens_battle_summon_menu.c.

SUMMON_MENU_WINDOW_WIDTH

#define SUMMON_MENU_WINDOW_WIDTH JAPANESE_OR(16, 17)

Referenced by mnBattleSummonMenuRun().

Definition at line 6 of file screens_battle_summon_menu.c.

SUMMON_COST_X

#define SUMMON_COST_X JAPANESE_OR(10, 11)

Referenced by mnBattleSummonMenuRun().

Definition at line 7 of file screens_battle_summon_menu.c.

Functions in detail

mnBattleSummonMenuRun

Sint32 mnBattleSummonMenuRun(Sint32 unusedA, Sint32 unusedB, const Uint8 *standby)

The battle summon list: the summons the party holds enough Djinn for (gmSummonListLearnedStub, DJINN_RECOVERY_TABLE.summonMask), four to a page, those standby can pay for first, each with its Djinn cost by element, the others in TEXT_COLOR_RED.

References gmSummonDefinitionGetNearStub(), gmSummonListLearnedStub(), mnAbilityBuildIconTiles(), mnTextDrawMessageAsTiles(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnTextSetColor(), mnWindowClose(), mnWindowCreate(), mnWindowHighlightRect(), mnWindowPutGlyph(), mnWindowSetTilemapEntry(), mnWindowSpriteRedrawSavedRect(), PerWork, PointingHandTiles, result, Sint32, syInputResetKeyRepeat(), syOAMAddSpriteAtDepth(), sySoundPlayStub(), sySynch(), syVRAMCacheAllocateEntry(), syVRAMCacheFreeEntry(), syVRAMCacheReload() and TickCount.

Referenced by mnBattleCollectPartyCommands().

Definition at line 13 of file screens_battle_summon_menu.c.