src/window/screens_battle_item_menu.c
The battle item menu. More…
Included by screens.c.
Functions
| Name | Description | |
|---|---|---|
Sint32 | mnItemCheckBattleUse (Sint32 unit, Sint32 itemId) | Says whether party member unit can use inventory entry itemId in battle (BATTLE_ITEM_USE). |
void | mnVRAMCopyTile (Uint32 srcTile, Uint32 destTile) | Copies one 4bpp tile of BG character block 0 to another, each given as a tilemap entry whose palette and flip bits are ignored. |
Sint32 | mnBattleItemMenuRun (Sint32 member, Uint16 *entries, Sint32 count) | The battle item list for unit member: count inventory entries (ended by 0), five to a page, each with its icon and name: plain when usable, TEXT_COLOR_YELLOW when mnItemCheckBattleUse refuses it, TEXT_COLOR_RED when broken; the window above names the one under the cursor (MsgItemPlainName), or says it cannot be used in battle. |
Description
The battle item menu. Part of screens.c.
Functions in detail
mnItemCheckBattleUse
Sint32 mnItemCheckBattleUse(Sint32 unit, Sint32 itemId)
Says whether party member unit can use inventory entry itemId in battle
(BATTLE_ITEM_USE).
References gmAbilityGetDefinitionStub(), gmItemCanUnitEquipStub(), gmItemGetDefinitionStub() and Sint32.
Referenced by mnBattleCollectPartyCommands() and mnBattleItemMenuRun().
Definition at line 5 of file screens_battle_item_menu.c.
mnVRAMCopyTile
void mnVRAMCopyTile(Uint32 srcTile, Uint32 destTile)
Copies one 4bpp tile of BG character block 0 to another, each given as a tilemap entry whose palette and flip bits are ignored.
References syDMAXCopy().
Referenced by mnBattleItemMenuRun() and mnBattlePsynergyMenuRun().
Definition at line 38 of file screens_battle_item_menu.c.
mnBattleItemMenuRun
Sint32 mnBattleItemMenuRun(Sint32 member, Uint16 *entries, Sint32 count)
The battle item list for unit member: count inventory entries (ended by
0), five to a page, each with its icon and name: plain when usable,
TEXT_COLOR_YELLOW when mnItemCheckBattleUse refuses it, TEXT_COLOR_RED when
broken; the window above names the one under the cursor (MsgItemPlainName),
or says it cannot be used in battle.
References gmItemGetDefinitionStub(), mnItemCheckBattleUse(), mnItemIconLoadIntoSlot(), mnTextDrawMessageAsTiles(), mnTextDrawWideStringAtOffset(), mnTextFillCanvasBackground(), mnTextSetColor(), mnVRAMCopyTile(), mnWindowClose(), mnWindowCreate(), mnWindowHighlightRect(), mnWindowSetTilemapEntry(), mnWindowSpriteRedrawSavedRect(), PerPush, PerRepeat, PointingHandTiles, Sint32, state, syInputResetKeyRepeat(), syOAMAddSpriteAtDepth(), sySoundPlayStub(), sySynch(), syVRAMCacheAllocateEntry(), syVRAMCacheFreeEntry(), syVRAMCacheReload() and TickCount.
Referenced by mnBattleCollectPartyCommands().
Definition at line 52 of file screens_battle_item_menu.c.