src/window/screens_battle_psynergy_menu.c
The battle Psynergy menu. More…
Included by screens.c.
Macros
| Name | Description | |
|---|---|---|
#define | LIST_WINDOW_X BY_LANGUAGE(9, 9, 9, 8, 8, 9) | The list is a tile wider in Spanish and French, and its columns move with it. |
#define | LIST_WINDOW_WIDTH BY_LANGUAGE(21, 21, 21, 22, 22, 21) | |
#define | COST_COLUMN BY_LANGUAGE(11, 11, 11, 12, 12, 11) | |
#define | COST_X BY_LANGUAGE(104, 104, 104, 112, 112, 104) | |
#define | RANGE_COLUMN BY_LANGUAGE(15, 15, 15, 16, 16, 15) |
Functions
| Name | Description | |
|---|---|---|
Sint32 | mnBattlePsynergyMenuRun (Sint32 unitId, Uint16 *actions, Sint32 count) | The battle Psynergy list for unit unitId: count abilities of actions (ended by 0), five to a page, each with its icon, name, PP cost, element and range icon, in TEXT_COLOR_YELLOW when not usable in battle, TEXT_COLOR_RED when the unit's PP fall short and TEXT_COLOR_PINK while its Psynergy is sealed; the window above describes the one under the cursor. |
Description
The battle Psynergy menu. Part of screens.c.
Macros in detail
LIST_WINDOW_X
#define LIST_WINDOW_X BY_LANGUAGE(9, 9, 9, 8, 8, 9)
The list is a tile wider in Spanish and French, and its columns move with it.
Referenced by mnBattlePsynergyMenuRun().
Definition at line 4 of file screens_battle_psynergy_menu.c.
LIST_WINDOW_WIDTH
#define LIST_WINDOW_WIDTH BY_LANGUAGE(21, 21, 21, 22, 22, 21)
Referenced by mnBattlePsynergyMenuRun().
Definition at line 5 of file screens_battle_psynergy_menu.c.
COST_COLUMN
#define COST_COLUMN BY_LANGUAGE(11, 11, 11, 12, 12, 11)
Referenced by mnBattlePsynergyMenuRun().
Definition at line 6 of file screens_battle_psynergy_menu.c.
COST_X
#define COST_X BY_LANGUAGE(104, 104, 104, 112, 112, 104)
Referenced by mnBattlePsynergyMenuRun().
Definition at line 7 of file screens_battle_psynergy_menu.c.
RANGE_COLUMN
#define RANGE_COLUMN BY_LANGUAGE(15, 15, 15, 16, 16, 15)
Referenced by mnBattlePsynergyMenuRun().
Definition at line 8 of file screens_battle_psynergy_menu.c.
Functions in detail
mnBattlePsynergyMenuRun
Sint32 mnBattlePsynergyMenuRun(Sint32 unitId, Uint16 *actions, Sint32 count)
The battle Psynergy list for unit unitId: count abilities of actions
(ended by 0), five to a page, each with its icon, name, PP cost, element and
range icon, in TEXT_COLOR_YELLOW when not usable in battle, TEXT_COLOR_RED
when the unit's PP fall short and TEXT_COLOR_PINK while its Psynergy is
sealed; the window above describes the one under the cursor. Returns the
chosen ability's place in actions, or -1 when cancelled, when the link
battle's time runs out or when the list is empty. Only an ability not usable
in battle is refused here, silently: one the PP cannot pay for, or a sealed
party member's, can be chosen. The Psynergy command runs it
(mnBattleCollectPartyCommands), listing only abilities usable in battle.
References gmAbilityGetDefinitionStub(), gmUnitGet(), mnAbilityBuildIconTiles(), mnRangeIconDraw(), mnTextDrawMessageAsTiles(), mnTextDrawNumberAtOffset(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnTextSetColor(), mnVRAMCopyTile(), mnWindowClose(), mnWindowCreate(), mnWindowHighlightRect(), mnWindowSetTilemapEntry(), mnWindowSpriteRedrawSavedRect(), PerWork, PointingHandTiles, result, Sint32, syInputResetKeyRepeat(), syOAMAddSpriteAtDepth(), sySoundPlayStub(), sySynch(), syVRAMCacheAllocateEntry(), syVRAMCacheFreeEntry(), syVRAMCacheReload() and TickCount.
Referenced by mnBattleCollectPartyCommands().
Definition at line 20 of file screens_battle_psynergy_menu.c.