Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
item_menu.c File Reference

FIGHTSTG's item menu, with the cursors of the technique and switch menus too, which the original has here. More...

Include dependency graph for item_menu.c:

Go to the source code of this file.

Functions

void FIGHTSTG_drawItemMenu (ItemMenu *task)
 Draws the page's item icons, the page arrows (blinking) and the frame.
 
void FIGHTSTG_createItemWindows (ItemMenu *task, ItemMenuWindows *w)
 Makes the item menu's windows: the page buttons, the count's label, the seven names, the description and the count.
 
void FIGHTSTG_showItemPage (ItemMenu *task, ItemMenuWindows *w)
 Shows the page's names and the description and count of the item under the cursor, or text 0x15 and 0x1A when there are none.
 
void FIGHTSTG_updateItemMenu (ItemMenu *task, ItemMenuWindows *w)
 The item menu's task: lists the items usable in battle (flag 2), then L1 and R1 turn the pages, cross picks the item under the cursor into *result and triangle gives -2; frees the list when killed.
 
ItemMenu * FIGHTSTG_createItemMenu (s32 *result)
 Opens the battle's item menu; *result gets the item picked, or -2 to go back.
 

Variables

CursorLayout FIGHTSTG_itemCursor
 the cursors of the items' (FIGHTSTG_updateItemMenu), the techniques' (FIGHTSTG_updateTechMenu) and the partner switch's (FIGHTSTG_updateSwitchMenu) menus
 
CursorLayout FIGHTSTG_techCursor
 FIGHTSTG_updateTechMenu's cursor.
 
CursorLayout FIGHTSTG_switchCursor
 FIGHTSTG_updateSwitchMenu's cursor.
 

Detailed Description

FIGHTSTG's item menu, with the cursors of the technique and switch menus too, which the original has here.

Definition in file item_menu.c.

Function Documentation

◆ FIGHTSTG_drawItemMenu()

void FIGHTSTG_drawItemMenu ( ItemMenu *  task)

Draws the page's item icons, the page arrows (blinking) and the frame.

< the HUD, the menus and the messages

Definition at line 7 of file item_menu.c.

Referenced by FIGHTSTG_updateItemMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_createItemWindows()

void FIGHTSTG_createItemWindows ( ItemMenu *  task,
ItemMenuWindows *  w 
)

Makes the item menu's windows: the page buttons, the count's label, the seven names, the description and the count.

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

Definition at line 41 of file item_menu.c.

Referenced by FIGHTSTG_updateItemMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_showItemPage()

void FIGHTSTG_showItemPage ( ItemMenu *  task,
ItemMenuWindows *  w 
)

Shows the page's names and the description and count of the item under the cursor, or text 0x15 and 0x1A when there are none.

< ITMNAM

< ITMINF

< MFIGHT: WFIGHTMN's

< MFIGHT: WFIGHTMN's

Definition at line 63 of file item_menu.c.

Referenced by FIGHTSTG_updateItemMenu().

Here is the caller graph for this function:

◆ FIGHTSTG_updateItemMenu()

void FIGHTSTG_updateItemMenu ( ItemMenu *  task,
ItemMenuWindows *  w 
)

The item menu's task: lists the items usable in battle (flag 2), then L1 and R1 turn the pages, cross picks the item under the cursor into *result and triangle gives -2; frees the list when killed.

< usable in battle (FIGHTSTG's item menu)

< usable in battle (FIGHTSTG's item menu)

< SYSTEM06

< SYSTEM07

< SYSTEM01

Definition at line 105 of file item_menu.c.

Referenced by FIGHTSTG_createItemMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIGHTSTG_createItemMenu()

ItemMenu * FIGHTSTG_createItemMenu ( s32 *  result)

Opens the battle's item menu; *result gets the item picked, or -2 to go back.

Definition at line 213 of file item_menu.c.

Referenced by runItemMenu().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ FIGHTSTG_itemCursor

CursorLayout FIGHTSTG_itemCursor
Initial value:
= {
1, 14, 69, 14, -1, 0, 0, 0,
}

the cursors of the items' (FIGHTSTG_updateItemMenu), the techniques' (FIGHTSTG_updateTechMenu) and the partner switch's (FIGHTSTG_updateSwitchMenu) menus

FIGHTSTG_updateItemMenu's cursor.

Definition at line 92 of file item_menu.c.

Referenced by FIGHTSTG_updateItemMenu().

◆ FIGHTSTG_techCursor

CursorLayout FIGHTSTG_techCursor
Initial value:
= {
1, 14, 69, 14, -1, 0, 0, 0,
}

FIGHTSTG_updateTechMenu's cursor.

Definition at line 95 of file item_menu.c.

Referenced by FIGHTSTG_updateTechMenu(), and setTechPages().

◆ FIGHTSTG_switchCursor

CursorLayout FIGHTSTG_switchCursor
Initial value:
= {
2, 17, 78, 32, 47, 16, 77, 32,
}

FIGHTSTG_updateSwitchMenu's cursor.

Definition at line 98 of file item_menu.c.

Referenced by FIGHTSTG_updateSwitchMenu().