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

The list of the items to buy or sell, by pages. More...

#include "menus/item_shop.h"
Include dependency graph for item_list.c:

Go to the source code of this file.

Functions

void STITSHOP_createItemListWindows (ShopItemList *list, ShopItemListWindows *win)
 Creates the item list's windows: 14 items in two columns, the page number, the L1 and R1 labels (lower when selling) and the cursor.
 
void STITSHOP_showItemPage (ShopItemList *list, ShopItemListWindows *win, s32 show)
 Shows the page of items, the page number and the arrows' labels; or hides them.
 
void STITSHOP_drawItemList (ShopItemList *list)
 Draws the list's frame, the items' icons and the blinking page arrows.
 
void STITSHOP_runItemList (ShopItemList *list, ShopItemListWindows *win)
 The list's states: lists the shop's items or the bag's, fades in, then fades out when closed.
 
void STITSHOP_updateItemList (ShopItemList *list, ShopItemListWindows *win)
 The item list: L1 and R1 turn its pages, the d-pad moves in the page, and the dialog shows the selected item.
 
void STITSHOP_freezeListCursor (ShopItemList *list, s32 frozen)
 Freezes the list's cursor (still, in palette 7) and its input, or lets them go again (list->freezeCursor): while the details panel turns its page.
 
void STITSHOP_showListCursor (ShopItemList *list, s32 visible)
 Shows the list's cursor at the selection and takes the d-pad, or hides it and stops (list->showCursor)
 
void STITSHOP_startItemList (ShopItemList *list)
 Runs the list's states again (list->start), to reopen it after the quantity and the yes/no.
 
void STITSHOP_closeItemList (ShopItemList *list)
 Closes the list (list->close): hides the cursor and fades it out.
 
s32 STITSHOP_getSelectedItem (ShopItemList *list)
 The item at the list's selection, of the shop's or of the bag's sellable ones (list->getSelected)
 
void STITSHOP_refreshItemList (ShopItemList *list)
 Lists the sellable items again, shows the page and the selection in the dialog (list->refresh)
 
void STITSHOP_listSellable (ShopItemList *list)
 Lists the bag's items of the list's type that can be sold, those with a sell price (list->listBag, again after a sale)
 
ShopItemList * STITSHOP_createItemList (ShopDialog *dialog, s32 type, s32 selling)
 Creates the item list (task) of a dialog: the items of the shop type when buying, the bag's of the item type when selling.
 

Detailed Description

The list of the items to buy or sell, by pages.

Definition in file item_list.c.

Function Documentation

◆ STITSHOP_createItemListWindows()

void STITSHOP_createItemListWindows ( ShopItemList *  list,
ShopItemListWindows *  win 
)

Creates the item list's windows: 14 items in two columns, the page number, the L1 and R1 labels (lower when selling) and the cursor.

item_list.c

Definition at line 7 of file item_list.c.

Referenced by STITSHOP_updateItemList().

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

◆ STITSHOP_showItemPage()

void STITSHOP_showItemPage ( ShopItemList *  list,
ShopItemListWindows *  win,
s32  show 
)

Shows the page of items, the page number and the arrows' labels; or hides them.

< ITMNAM

< ITSHOP: STITSHOP's

< ITSHOP: STITSHOP's

< ITSHOP: STITSHOP's

Definition at line 26 of file item_list.c.

Referenced by STITSHOP_refreshItemList(), STITSHOP_runItemList(), and STITSHOP_updateItemList().

Here is the caller graph for this function:

◆ STITSHOP_drawItemList()

void STITSHOP_drawItemList ( ShopItemList *  list)

Draws the list's frame, the items' icons and the blinking page arrows.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 75 of file item_list.c.

Referenced by STITSHOP_updateItemList().

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

◆ STITSHOP_runItemList()

void STITSHOP_runItemList ( ShopItemList *  list,
ShopItemListWindows *  win 
)

The list's states: lists the shop's items or the bag's, fades in, then fades out when closed.

Definition at line 133 of file item_list.c.

Referenced by STITSHOP_updateItemList().

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

◆ STITSHOP_updateItemList()

void STITSHOP_updateItemList ( ShopItemList *  list,
ShopItemListWindows *  win 
)

The item list: L1 and R1 turn its pages, the d-pad moves in the page, and the dialog shows the selected item.

< SYSTEM02: a cursor moves

< SYSTEM02: a cursor moves

Definition at line 176 of file item_list.c.

Referenced by STITSHOP_createItemList().

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

◆ STITSHOP_freezeListCursor()

void STITSHOP_freezeListCursor ( ShopItemList *  list,
s32  frozen 
)

Freezes the list's cursor (still, in palette 7) and its input, or lets them go again (list->freezeCursor): while the details panel turns its page.

< what is unavailable

Definition at line 271 of file item_list.c.

Referenced by STITSHOP_createItemList().

Here is the caller graph for this function:

◆ STITSHOP_showListCursor()

void STITSHOP_showListCursor ( ShopItemList *  list,
s32  visible 
)

Shows the list's cursor at the selection and takes the d-pad, or hides it and stops (list->showCursor)

Definition at line 287 of file item_list.c.

Referenced by STITSHOP_closeItemList(), and STITSHOP_createItemList().

Here is the caller graph for this function:

◆ STITSHOP_startItemList()

void STITSHOP_startItemList ( ShopItemList *  list)

Runs the list's states again (list->start), to reopen it after the quantity and the yes/no.

Definition at line 299 of file item_list.c.

Referenced by STITSHOP_createItemList().

Here is the caller graph for this function:

◆ STITSHOP_closeItemList()

void STITSHOP_closeItemList ( ShopItemList *  list)

Closes the list (list->close): hides the cursor and fades it out.

Definition at line 304 of file item_list.c.

Referenced by STITSHOP_createItemList().

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

◆ STITSHOP_getSelectedItem()

s32 STITSHOP_getSelectedItem ( ShopItemList *  list)

The item at the list's selection, of the shop's or of the bag's sellable ones (list->getSelected)

Definition at line 312 of file item_list.c.

Referenced by STITSHOP_createItemList().

Here is the caller graph for this function:

◆ STITSHOP_refreshItemList()

void STITSHOP_refreshItemList ( ShopItemList *  list)

Lists the sellable items again, shows the page and the selection in the dialog (list->refresh)

Definition at line 321 of file item_list.c.

Referenced by STITSHOP_createItemList().

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

◆ STITSHOP_listSellable()

void STITSHOP_listSellable ( ShopItemList *  list)

Lists the bag's items of the list's type that can be sold, those with a sell price (list->listBag, again after a sale)

Definition at line 331 of file item_list.c.

Referenced by STITSHOP_createItemList(), STITSHOP_refreshItemList(), and STITSHOP_runItemList().

Here is the caller graph for this function:

◆ STITSHOP_createItemList()

ShopItemList * STITSHOP_createItemList ( ShopDialog *  dialog,
s32  type,
s32  selling 
)

Creates the item list (task) of a dialog: the items of the shop type when buying, the bag's of the item type when selling.

Definition at line 346 of file item_list.c.

Referenced by STITSHOP_reopenSellList(), STITSHOP_runBuy(), and STITSHOP_runSell().

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