Alchemy
Loading...
Searching...
No Matches

battle_command_internal.h File Reference

What every part of the menu object shares: its includes, edition values, macros and the link round state. More...

Go to the source code of this file.

Data Structures

struct  SelectionEntry
 The command icon row's work block and one of its icons: pictures.c loads the icons, command_row.c runs the row. More...
struct  SelectionWork
 The command icon row's work block: the icons' shared palette, up to six icons, the label window, the pulsing icon's transform and the selection. More...

Macros

#define DJINN_PREVIEW_VITALS_X   5
#define DJINN_PREVIEW_STAT_DIGIT_OFFSET   8
#define DJINN_PREVIEW_STAT_X   6
#define DJINN_PREVIEW_HELP_X   24
#define PSYNERGY_COST_SECOND_TILE   0xf01e
#define OWNER_STATUS_LEVEL_X   56
#define SUMMON_MENU_WINDOW_X   13
#define SUMMON_MENU_WINDOW_WIDTH   17
#define BATTLE_CLASS_ICON_X   0
#define BATTLE_COMMAND_NAME_X   16
#define BATTLE_SUMMON_ICON_X   80
#define BATTLE_SUMMON_WINDOW_WIDTH   17
#define BATTLE_SUMMON_ELEMENT_COLUMN   13
#define BATTLE_SUMMON_COST_COLUMN   14
#define BATTLE_ITEM_WINDOW_WIDTH   15
#define RESOURCE_MODE0_WINDOW_X   7
#define RESOURCE_MODE0_WINDOW_WIDTH   17
#define RESOURCE_MODE1_WINDOW_X   3
#define RESOURCE_MODE1_WINDOW_WIDTH   25
#define TRANSFER_METHOD_WINDOW_X   6
#define TRANSFER_METHOD_WINDOW_WIDTH   18
#define TRANSFER_METHOD_LABEL_X   2
#define TRANSFER_HELP_WINDOW_X   1
#define TRANSFER_HELP_WINDOW_WIDTH   28
#define ENTRY11_COMMAND_LABEL_WIDTH   7
#define ENTRY19_COMMAND_LABEL_WIDTH   10
#define OUTPUT_SIZE_16X16   0x40000000
 OAM attribute bits a sprite output is created with: the size field of attribute 1 (bits 30-31 of the first word).
#define OUTPUT_SIZE_32X32   0x80000000
#define PORTRAIT_SLOT_COUNT   2
#define PORTRAIT_PALETTE   14
#define PORTRAIT_SLOT_EMPTY   999
#define BATTLE_MENU_MESSAGE_CAPACITY   52
#define BATTLE_MENU_MESSAGE_COPY   UiText_CopyMessageString
#define BATTLE_OK   0x80
 flags: usable in battle

Enumerations

enum  {
  SUMMON_ELEMENT_TILE = 0x5001 , LIST_TILE_PAGE_NUMBER = 0xf301 , LIST_TILE_PAGE_NUMBER_LIT = 0xf30b , LIST_TILE_PAGES_LEFT = 0xf334 ,
  LIST_TILE_PAGES_RIGHT = 0xf335
}
 Tiles the battle lists draw over their window's top edge: the page numbers and arrows, and the summon list's element icon. More...

Variables

const u8 gDjinnMenu_BlinkTile [32]
const u8 gDjinnMenu_ElementXOffsets [4]
const u8 gDjinnMenu_ElementYOffsets [4]

Detailed Description

What every part of the menu object shares: its includes, edition values, macros and the link round state.

battle_command.c includes it before the parts, and each part includes it too, so that a part read on its own still resolves.

Definition in file battle_command_internal.h.

Macro Definition Documentation

◆ DJINN_PREVIEW_VITALS_X

#define DJINN_PREVIEW_VITALS_X   5

Definition at line 116 of file battle_command_internal.h.

Referenced by DjinnMenu_ShowChangePreview().

◆ DJINN_PREVIEW_STAT_DIGIT_OFFSET

#define DJINN_PREVIEW_STAT_DIGIT_OFFSET   8

Definition at line 123 of file battle_command_internal.h.

Referenced by DjinnMenu_ShowChangePreview().

◆ DJINN_PREVIEW_STAT_X

#define DJINN_PREVIEW_STAT_X   6

Definition at line 124 of file battle_command_internal.h.

Referenced by DjinnMenu_ShowChangePreview().

◆ DJINN_PREVIEW_HELP_X

#define DJINN_PREVIEW_HELP_X   24

Definition at line 130 of file battle_command_internal.h.

Referenced by DjinnMenu_ShowChangePreview().

◆ PSYNERGY_COST_SECOND_TILE

#define PSYNERGY_COST_SECOND_TILE   0xf01e

◆ OWNER_STATUS_LEVEL_X

#define OWNER_STATUS_LEVEL_X   56

Definition at line 143 of file battle_command_internal.h.

Referenced by Ui_RunOwnerStatusScreen().

◆ SUMMON_MENU_WINDOW_X

#define SUMMON_MENU_WINDOW_X   13

Definition at line 147 of file battle_command_internal.h.

Referenced by SummonMenu_SelectSummon().

◆ SUMMON_MENU_WINDOW_WIDTH

#define SUMMON_MENU_WINDOW_WIDTH   17

Definition at line 148 of file battle_command_internal.h.

Referenced by SummonMenu_SelectSummon().

◆ BATTLE_CLASS_ICON_X

#define BATTLE_CLASS_ICON_X   0

Definition at line 155 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_COMMAND_NAME_X

#define BATTLE_COMMAND_NAME_X   16

Definition at line 163 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_SUMMON_ICON_X

#define BATTLE_SUMMON_ICON_X   80

Definition at line 167 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_SUMMON_WINDOW_WIDTH

#define BATTLE_SUMMON_WINDOW_WIDTH   17

Definition at line 173 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_SUMMON_ELEMENT_COLUMN

#define BATTLE_SUMMON_ELEMENT_COLUMN   13

Definition at line 179 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_SUMMON_COST_COLUMN

#define BATTLE_SUMMON_COST_COLUMN   14

Definition at line 180 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ BATTLE_ITEM_WINDOW_WIDTH

#define BATTLE_ITEM_WINDOW_WIDTH   15

Definition at line 190 of file battle_command_internal.h.

Referenced by Battle_CollectPartyCommands().

◆ RESOURCE_MODE0_WINDOW_X

#define RESOURCE_MODE0_WINDOW_X   7

Definition at line 195 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ RESOURCE_MODE0_WINDOW_WIDTH

#define RESOURCE_MODE0_WINDOW_WIDTH   17

Definition at line 196 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ RESOURCE_MODE1_WINDOW_X

#define RESOURCE_MODE1_WINDOW_X   3

Definition at line 212 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ RESOURCE_MODE1_WINDOW_WIDTH

#define RESOURCE_MODE1_WINDOW_WIDTH   25

Definition at line 213 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ TRANSFER_METHOD_WINDOW_X

#define TRANSFER_METHOD_WINDOW_X   6

Definition at line 217 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ TRANSFER_METHOD_WINDOW_WIDTH

#define TRANSFER_METHOD_WINDOW_WIDTH   18

Definition at line 218 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ TRANSFER_METHOD_LABEL_X

#define TRANSFER_METHOD_LABEL_X   2

Definition at line 231 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ TRANSFER_HELP_WINDOW_X

#define TRANSFER_HELP_WINDOW_X   1

Definition at line 238 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ TRANSFER_HELP_WINDOW_WIDTH

#define TRANSFER_HELP_WINDOW_WIDTH   28

Definition at line 239 of file battle_command_internal.h.

Referenced by Menu_SelectResourceLayout().

◆ ENTRY11_COMMAND_LABEL_WIDTH

#define ENTRY11_COMMAND_LABEL_WIDTH   7

Definition at line 251 of file battle_command_internal.h.

Referenced by Menu_SelectShopCommand().

◆ ENTRY19_COMMAND_LABEL_WIDTH

#define ENTRY19_COMMAND_LABEL_WIDTH   10

Definition at line 257 of file battle_command_internal.h.

Referenced by Menu_SelectSanctumService().

◆ OUTPUT_SIZE_16X16

#define OUTPUT_SIZE_16X16   0x40000000

OAM attribute bits a sprite output is created with: the size field of attribute 1 (bits 30-31 of the first word).

A square sprite of size 1 is 16x16 pixels, of size 2 32x32.

Definition at line 265 of file battle_command_internal.h.

Referenced by DebugMenu_BrowseIcons(), NameEntry_EditOwnerName(), PartyTalkMenu_Choose(), RenderOutput_CreateFromResource(), RenderOutput_CreateFromTable(), RenderOutput_CreateLoaded(), RenderOutput_CreateWithTransform(), SaveMenu_SelectSlot(), and Ui_CreateOutputFromResourceSlot().

◆ OUTPUT_SIZE_32X32

#define OUTPUT_SIZE_32X32   0x80000000

Definition at line 266 of file battle_command_internal.h.

Referenced by CreateSideObject(), and RenderResource_CreateFrame().

◆ PORTRAIT_SLOT_COUNT

#define PORTRAIT_SLOT_COUNT   2

Definition at line 270 of file battle_command_internal.h.

◆ PORTRAIT_PALETTE

#define PORTRAIT_PALETTE   14

Definition at line 271 of file battle_command_internal.h.

Referenced by CreateSideObject(), and Ui_LoadCharacterEntryForSlot().

◆ PORTRAIT_SLOT_EMPTY

#define PORTRAIT_SLOT_EMPTY   999

Definition at line 272 of file battle_command_internal.h.

Referenced by CreateSideObject().

◆ BATTLE_MENU_MESSAGE_CAPACITY

◆ BATTLE_MENU_MESSAGE_COPY

◆ BATTLE_OK

#define BATTLE_OK   0x80

flags: usable in battle

Definition at line 294 of file battle_command_internal.h.

Referenced by Item_ClassifyUseAbility().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Tiles the battle lists draw over their window's top edge: the page numbers and arrows, and the summon list's element icon.

Enumerator
SUMMON_ELEMENT_TILE 

Element icon.

LIST_TILE_PAGE_NUMBER 

Page number.

LIST_TILE_PAGE_NUMBER_LIT 

Current page number.

LIST_TILE_PAGES_LEFT 

Left arrow.

LIST_TILE_PAGES_RIGHT 

Right arrow.

Definition at line 286 of file battle_command_internal.h.

Variable Documentation

◆ gDjinnMenu_BlinkTile

const u8 gDjinnMenu_BlinkTile[32]
extern

Referenced by Battle_SelectAbility().

◆ gDjinnMenu_ElementXOffsets

const u8 gDjinnMenu_ElementXOffsets[4]
extern

Referenced by Battle_SelectAbility().

◆ gDjinnMenu_ElementYOffsets

const u8 gDjinnMenu_ElementYOffsets[4]
extern

Referenced by Battle_SelectAbility().