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

The sixth object of STSTATUS.PRO (see card_screen.c), the first screen (STSTATUS_createItemScreen): its rodata starts at 0x800829D0 (USA). More...

#include "menus/field_menu.h"
Include dependency graph for item_screen.c:

Go to the source code of this file.

Functions

void STSTATUS_createItemWindows (ItemScreen *screen, ItemScreenWindows *windows)
 Creates the first screen's windows.
 
void STSTATUS_showItemPage (ItemScreen *screen, ItemScreenWindows *windows, s32 member, s32 show)
 As STSTATUS_showCardPage.
 
void STSTATUS_showMoney (ItemScreen *screen, ItemScreenWindows *windows, s32 show)
 Shows or hides the player's money.
 
void STSTATUS_showItemLists (ItemScreen *screen, ItemScreenWindows *windows, s32 show)
 Shows or hides the first screen's five options, the item lists.
 
void STSTATUS_showChosenItem (ItemScreen *screen, s32 show)
 Shows or hides the chosen item's name and how many are equipped and owned.
 
void STSTATUS_showItemHelp (ItemScreen *screen, s32 mode)
 The help line: 1 the chosen item and the kind of a weapon, 2 a question with two answers, -2 hides the answers, -1 the kind, others all.
 
void STSTATUS_fadeItemInfo (ItemScreen *screen, s32 show)
 Opens or closes the chosen item's panel (its icon and frame); closing it also hides the item's name, counts and help.
 
s32 STSTATUS_itemInfoFaded (ItemScreen *screen)
 Moves the chosen item's panel on; 1 once it is fully open or closed.
 
void STSTATUS_useItem (ItemScreen *screen, ItemScreenWindows *windows)
 Uses the chosen item on the chosen party member.
 
static void STSTATUS_animateItemPortraits (ItemScreen *screen)
 Moves the partners' portraits to their next frames every 13 frames.
 
static void STSTATUS_stepItemCursor (ItemScreen *screen)
 Moves the member cursor's palette on every 9 frames.
 
void STSTATUS_drawItemScreen (ItemScreen *screen)
 Draws the partners' portraits and frames, the item, the cursor and the help arrow.
 
static void STSTATUS_startItemScreen (ItemScreen *screen)
 Starts the fades of the first page and the title and, with one party member, of the other panels (the help's unless it stayed open); the next substate is the party's size.
 
static void STSTATUS_openItemScreenAlone (ItemScreen *screen, ItemScreenWindows *windows)
 One member: once the panels are in, shows the title, the page, the help, the money and the options.
 
static void STSTATUS_openFirstOfTwoItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Two members: once the first page and the title are in, shows them and starts the second page and the other panels.
 
static void STSTATUS_openSecondOfTwoItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Two members: once the second page and the panels are in, shows the page, the options, the help and the money.
 
static void STSTATUS_openFirstOfThreeItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Three members: once the first page and the title are in, shows them and starts the second page and the options' panel.
 
static void STSTATUS_openSecondOfThreeItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Three members: once the second page and the options' panel are in, shows them and starts the third page and the help's and the money's panels.
 
static void STSTATUS_openThirdItemPage (ItemScreen *screen, ItemScreenWindows *windows)
 Three members: once the third page and the panels are in, shows the page, the help and the money.
 
static void STSTATUS_chooseItemList (ItemScreen *screen, ItemScreenWindows *windows)
 The options, the item lists: up and down move the cursor, cross opens the chosen list (or says it is empty), triangle closes the screen.
 
static void STSTATUS_closeItemScreenForList (ItemScreen *screen, ItemScreenWindows *windows)
 Starts closing the pages and the panels but the help's, for the item list.
 
static void STSTATUS_openItemList (ItemScreen *screen, ItemScreenWindows *windows)
 Once they are closed, opens the chosen option's item list and the item's panel.
 
static void STSTATUS_leaveItemList (ItemScreen *screen, ItemScreenWindows *windows)
 Once the item list closes: back to the options when it was cancelled, to the end (0x28) at -2, else to choosing a member to use the item on.
 
static void STSTATUS_openFirstMemberPage (ItemScreen *screen, ItemScreenWindows *windows)
 Once the first page and the title are in, shows them and starts the second page, or shows the cursor with one member.
 
static void STSTATUS_openSecondMemberPage (ItemScreen *screen, ItemScreenWindows *windows)
 Once the second page is in, shows it and starts the third, or shows the cursor with two members.
 
static void STSTATUS_openThirdMemberPage (ItemScreen *screen, ItemScreenWindows *windows)
 Once the third page is in, shows it.
 
static void STSTATUS_chooseItemMember (ItemScreen *screen, ItemScreenWindows *windows)
 Choosing the member to use the item on: up and down move the cursor, cross uses the item, triangle goes back to the list.
 
static void STSTATUS_closeItemTitle (ItemScreen *screen)
 Hides the cursor; once the title's and the item's panels are closed, goes on to closing the pages.
 
static void STSTATUS_closeMemberPages (ItemScreen *screen, ItemScreenWindows *windows)
 Starts closing the last page (and the title with one member)
 
static void STSTATUS_closeThirdMemberPage (ItemScreen *screen, ItemScreenWindows *windows)
 Once the third page is closed, starts closing the second.
 
static void STSTATUS_closeSecondMemberPage (ItemScreen *screen, ItemScreenWindows *windows)
 Once the second page is closed, starts closing the first and the title.
 
static void STSTATUS_reopenItemList (ItemScreen *screen, ItemScreenWindows *windows)
 Once the first page is closed, opens the item list again on the item (and the item's panel, after an item was used)
 
static void STSTATUS_closeUsedItem (ItemScreen *screen)
 Hides the cursor; once the item's panel is closed, waits for cross.
 
static void STSTATUS_confirmItemUsed (ItemScreen *screen)
 Cross after an item was used: back to the item list, or to the options when the list is empty now.
 
static void STSTATUS_reopenItemOptions (ItemScreen *screen, ItemScreenWindows *windows)
 Once the panels are in again, shows the title, the options, the money and the help.
 
static void STSTATUS_lockItemOptions (ItemScreen *screen, ItemScreenWindows *windows)
 Greys the options' cursor and says the chosen list is empty.
 
static void STSTATUS_unlockItemOptions (ItemScreen *screen, ItemScreenWindows *windows)
 Triangle gives the options' cursor back.
 
static void STSTATUS_closeItemScreen (ItemScreen *screen, ItemScreenWindows *windows)
 Starts closing the screen: the last page and, with it, the panels the other pages don't wait for.
 
static void STSTATUS_closeItemScreenAlone (ItemScreen *screen)
 One member: ends the screen once the page and the panels are closed.
 
static void STSTATUS_closeSecondOfTwoItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Two members: once the second page and its panels are closed, starts closing the first and the title.
 
static void STSTATUS_closeFirstOfTwoItemPages (ItemScreen *screen)
 Two members: ends the screen once the first page and the help are closed.
 
static void STSTATUS_closeThirdItemPage (ItemScreen *screen, ItemScreenWindows *windows)
 Three members: once the third page and its panels are closed, starts closing the second and the options.
 
static void STSTATUS_closeSecondOfThreeItemPages (ItemScreen *screen, ItemScreenWindows *windows)
 Three members: once the second page and the options are closed, starts closing the first and the title.
 
static void STSTATUS_closeFirstOfThreeItemPages (ItemScreen *screen)
 Three members: ends the screen once the first page and the title are closed.
 
void STSTATUS_runItemScreen (ItemScreen *screen, ItemScreenWindows *windows)
 The first screen's update: opens the pages, picks an item list, then the party member to use the chosen item on, and closes them.
 
void STSTATUS_updateItemScreen (ItemScreen *screen, ItemScreenWindows *windows)
 The first screen's task: counts the party, sets the fades and creates the windows, then runs and draws the screen.
 
Task * STSTATUS_createItemScreen (FieldMenuScreen *menu, s32 extra)
 Creates the field menu's first screen (task), the items.
 

Variables

s32 STSTATUS_itemLists []
 The item lists of the first screen's options.
 
s32 STSTATUS_pageStats0 []
 
s32 STSTATUS_kindStrings0 []
 The strings of the item kinds (WeaponData.kind), from 0.
 
StatusStatItem STSTATUS_statItems []
 What the items that raise a stat raise.
 

Detailed Description

The sixth object of STSTATUS.PRO (see card_screen.c), the first screen (STSTATUS_createItemScreen): its rodata starts at 0x800829D0 (USA).

Definition in file item_screen.c.

Function Documentation

◆ STSTATUS_createItemWindows()

void STSTATUS_createItemWindows ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)

Creates the first screen's windows.

item_screen.c

Definition at line 7 of file item_screen.c.

Referenced by STSTATUS_updateItemScreen().

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

◆ STSTATUS_showItemPage()

◆ STSTATUS_showMoney()

void STSTATUS_showMoney ( ItemScreen *  screen,
ItemScreenWindows *  windows,
s32  show 
)

Shows or hides the player's money.

< STATUS: the field menu's and STSTATUS's

Definition at line 80 of file item_screen.c.

Referenced by STSTATUS_openItemScreenAlone(), STSTATUS_openSecondOfTwoItemPages(), STSTATUS_openThirdItemPage(), and STSTATUS_reopenItemOptions().

Here is the caller graph for this function:

◆ STSTATUS_showItemLists()

void STSTATUS_showItemLists ( ItemScreen *  screen,
ItemScreenWindows *  windows,
s32  show 
)

Shows or hides the first screen's five options, the item lists.

< STATUS: the field menu's and STSTATUS's

Definition at line 92 of file item_screen.c.

Referenced by STSTATUS_closeItemScreen(), STSTATUS_closeThirdItemPage(), STSTATUS_openItemScreenAlone(), STSTATUS_openSecondOfThreeItemPages(), STSTATUS_openSecondOfTwoItemPages(), and STSTATUS_reopenItemOptions().

Here is the caller graph for this function:

◆ STSTATUS_showChosenItem()

void STSTATUS_showChosenItem ( ItemScreen *  screen,
s32  show 
)

Shows or hides the chosen item's name and how many are equipped and owned.

< ITMNAM

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 110 of file item_screen.c.

Referenced by STSTATUS_fadeItemInfo(), STSTATUS_moveItemListCursor(), and STSTATUS_refreshItemList().

Here is the caller graph for this function:

◆ STSTATUS_showItemHelp()

void STSTATUS_showItemHelp ( ItemScreen *  screen,
s32  mode 
)

The help line: 1 the chosen item and the kind of a weapon, 2 a question with two answers, -2 hides the answers, -1 the kind, others all.

< ITMINF

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 134 of file item_screen.c.

Referenced by STSTATUS_fadeItemInfo(), STSTATUS_moveItemListCursor(), STSTATUS_refreshItemList(), and STSTATUS_runItemList().

Here is the caller graph for this function:

◆ STSTATUS_fadeItemInfo()

void STSTATUS_fadeItemInfo ( ItemScreen *  screen,
s32  show 
)

Opens or closes the chosen item's panel (its icon and frame); closing it also hides the item's name, counts and help.

Definition at line 165 of file item_screen.c.

Referenced by STSTATUS_chooseItemMember(), STSTATUS_openItemList(), STSTATUS_reopenItemList(), and STSTATUS_runItemList().

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

◆ STSTATUS_itemInfoFaded()

s32 STSTATUS_itemInfoFaded ( ItemScreen *  screen)

Moves the chosen item's panel on; 1 once it is fully open or closed.

Definition at line 176 of file item_screen.c.

Referenced by STSTATUS_closeItemTitle(), STSTATUS_closeUsedItem(), STSTATUS_runItemList(), and STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_useItem()

void STSTATUS_useItem ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)

Uses the chosen item on the chosen party member.

< STATUS: the field menu's and STSTATUS's

< what the training's intensities cost

< what the training's intensities cost

< what the training's intensities cost

< what the training's intensities cost

< STATUS: the field menu's and STSTATUS's

< RECOVERY

< STATUS: the field menu's and STSTATUS's

< SYSTEM07

Definition at line 181 of file item_screen.c.

Referenced by STSTATUS_chooseItemMember().

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

◆ STSTATUS_animateItemPortraits()

static void STSTATUS_animateItemPortraits ( ItemScreen *  screen)
inlinestatic

Moves the partners' portraits to their next frames every 13 frames.

Definition at line 249 of file item_screen.c.

Referenced by STSTATUS_drawItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_stepItemCursor()

static void STSTATUS_stepItemCursor ( ItemScreen *  screen)
inlinestatic

Moves the member cursor's palette on every 9 frames.

Definition at line 267 of file item_screen.c.

Referenced by STSTATUS_drawItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_drawItemScreen()

void STSTATUS_drawItemScreen ( ItemScreen *  screen)

Draws the partners' portraits and frames, the item, the cursor and the help arrow.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 278 of file item_screen.c.

Referenced by STSTATUS_updateItemScreen().

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

◆ STSTATUS_startItemScreen()

static void STSTATUS_startItemScreen ( ItemScreen *  screen)
inlinestatic

Starts the fades of the first page and the title and, with one party member, of the other panels (the help's unless it stayed open); the next substate is the party's size.

Definition at line 352 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_openItemScreenAlone()

static void STSTATUS_openItemScreenAlone ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

One member: once the panels are in, shows the title, the page, the help, the money and the options.

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 375 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openFirstOfTwoItemPages()

static void STSTATUS_openFirstOfTwoItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Two members: once the first page and the title are in, shows them and starts the second page and the other panels.

< STATUS: the field menu's and STSTATUS's

Definition at line 396 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openSecondOfTwoItemPages()

static void STSTATUS_openSecondOfTwoItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Two members: once the second page and the panels are in, shows the page, the options, the help and the money.

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 413 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openFirstOfThreeItemPages()

static void STSTATUS_openFirstOfThreeItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Three members: once the first page and the title are in, shows them and starts the second page and the options' panel.

< STATUS: the field menu's and STSTATUS's

Definition at line 432 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openSecondOfThreeItemPages()

static void STSTATUS_openSecondOfThreeItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Three members: once the second page and the options' panel are in, shows them and starts the third page and the help's and the money's panels.

Definition at line 445 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openThirdItemPage()

static void STSTATUS_openThirdItemPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Three members: once the third page and the panels are in, shows the page, the help and the money.

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 461 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_chooseItemList()

static void STSTATUS_chooseItemList ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

The options, the item lists: up and down move the cursor, cross opens the chosen list (or says it is empty), triangle closes the screen.

< SYSTEM02: a cursor moves

< STATUS: the field menu's and STSTATUS's

< SYSTEM00: a choice is taken

< STATUS: the field menu's and STSTATUS's

< SYSTEM01

Definition at line 478 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeItemScreenForList()

static void STSTATUS_closeItemScreenForList ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Starts closing the pages and the panels but the help's, for the item list.

Definition at line 512 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openItemList()

static void STSTATUS_openItemList ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once they are closed, opens the chosen option's item list and the item's panel.

Definition at line 536 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_leaveItemList()

static void STSTATUS_leaveItemList ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the item list closes: back to the options when it was cancelled, to the end (0x28) at -2, else to choosing a member to use the item on.

Definition at line 553 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_openFirstMemberPage()

static void STSTATUS_openFirstMemberPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the first page and the title are in, shows them and starts the second page, or shows the cursor with one member.

< STATUS: the field menu's and STSTATUS's

Definition at line 568 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openSecondMemberPage()

static void STSTATUS_openSecondMemberPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the second page is in, shows it and starts the third, or shows the cursor with two members.

Definition at line 584 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_openThirdMemberPage()

static void STSTATUS_openThirdMemberPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the third page is in, shows it.

Definition at line 597 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_chooseItemMember()

static void STSTATUS_chooseItemMember ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Choosing the member to use the item on: up and down move the cursor, cross uses the item, triangle goes back to the list.

< SYSTEM06

< SYSTEM01

Definition at line 606 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeItemTitle()

static void STSTATUS_closeItemTitle ( ItemScreen *  screen)
inlinestatic

Hides the cursor; once the title's and the item's panels are closed, goes on to closing the pages.

Definition at line 642 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeMemberPages()

static void STSTATUS_closeMemberPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Starts closing the last page (and the title with one member)

Definition at line 653 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeThirdMemberPage()

static void STSTATUS_closeThirdMemberPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the third page is closed, starts closing the second.

Definition at line 676 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeSecondMemberPage()

static void STSTATUS_closeSecondMemberPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the second page is closed, starts closing the first and the title.

Definition at line 685 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_reopenItemList()

static void STSTATUS_reopenItemList ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the first page is closed, opens the item list again on the item (and the item's panel, after an item was used)

Definition at line 696 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeUsedItem()

static void STSTATUS_closeUsedItem ( ItemScreen *  screen)
inlinestatic

Hides the cursor; once the item's panel is closed, waits for cross.

Definition at line 707 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_confirmItemUsed()

static void STSTATUS_confirmItemUsed ( ItemScreen *  screen)
inlinestatic

Cross after an item was used: back to the item list, or to the options when the list is empty now.

< SYSTEM07

Definition at line 717 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_reopenItemOptions()

static void STSTATUS_reopenItemOptions ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Once the panels are in again, shows the title, the options, the money and the help.

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 735 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_lockItemOptions()

static void STSTATUS_lockItemOptions ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Greys the options' cursor and says the chosen list is empty.

< what is unavailable

< STATUS: the field menu's and STSTATUS's

Definition at line 750 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_unlockItemOptions()

static void STSTATUS_unlockItemOptions ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Triangle gives the options' cursor back.

< SYSTEM01

< STATUS: the field menu's and STSTATUS's

Definition at line 758 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeItemScreen()

static void STSTATUS_closeItemScreen ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Starts closing the screen: the last page and, with it, the panels the other pages don't wait for.

Definition at line 770 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeItemScreenAlone()

static void STSTATUS_closeItemScreenAlone ( ItemScreen *  screen)
inlinestatic

One member: ends the screen once the page and the panels are closed.

Definition at line 815 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeSecondOfTwoItemPages()

static void STSTATUS_closeSecondOfTwoItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Two members: once the second page and its panels are closed, starts closing the first and the title.

Definition at line 827 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeFirstOfTwoItemPages()

static void STSTATUS_closeFirstOfTwoItemPages ( ItemScreen *  screen)
inlinestatic

Two members: ends the screen once the first page and the help are closed.

Definition at line 841 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeThirdItemPage()

static void STSTATUS_closeThirdItemPage ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Three members: once the third page and its panels are closed, starts closing the second and the options.

Definition at line 850 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeSecondOfThreeItemPages()

static void STSTATUS_closeSecondOfThreeItemPages ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)
inlinestatic

Three members: once the second page and the options are closed, starts closing the first and the title.

Definition at line 864 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

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

◆ STSTATUS_closeFirstOfThreeItemPages()

static void STSTATUS_closeFirstOfThreeItemPages ( ItemScreen *  screen)
inlinestatic

Three members: ends the screen once the first page and the title are closed.

Definition at line 877 of file item_screen.c.

Referenced by STSTATUS_runItemScreen().

Here is the caller graph for this function:

◆ STSTATUS_runItemScreen()

void STSTATUS_runItemScreen ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)

The first screen's update: opens the pages, picks an item list, then the party member to use the chosen item on, and closes them.

Definition at line 886 of file item_screen.c.

Referenced by STSTATUS_updateItemScreen().

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

◆ STSTATUS_updateItemScreen()

void STSTATUS_updateItemScreen ( ItemScreen *  screen,
ItemScreenWindows *  windows 
)

The first screen's task: counts the party, sets the fades and creates the windows, then runs and draws the screen.

Definition at line 1007 of file item_screen.c.

Referenced by STSTATUS_createItemScreen().

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

◆ STSTATUS_createItemScreen()

Task * STSTATUS_createItemScreen ( FieldMenuScreen *  menu,
s32  extra 
)

Creates the field menu's first screen (task), the items.

Definition at line 1041 of file item_screen.c.

Referenced by STSTATUS_runScreens().

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

Variable Documentation

◆ STSTATUS_itemLists

s32 STSTATUS_itemLists[]
Initial value:
= {
1, 0x80000002, 0x80000003, 0x80000004,
0,
}

The item lists of the first screen's options.

the item lists of the first screen's options

Definition at line 1051 of file item_screen.c.

Referenced by STSTATUS_chooseItemList(), STSTATUS_confirmItemUsed(), and STSTATUS_fillItemList().

◆ STSTATUS_pageStats0

s32 STSTATUS_pageStats0[]
Initial value:
= {
0 , 2 , 3 , 4 ,
5 ,
}

Definition at line 1055 of file item_screen.c.

Referenced by STSTATUS_showItemPage().

◆ STSTATUS_kindStrings0

s32 STSTATUS_kindStrings0[]
Initial value:
= {
0, 67, 77, 79,
65, 66, 68, 80,
68,
}

The strings of the item kinds (WeaponData.kind), from 0.

the strings of the item kinds, from 0

Definition at line 1060 of file item_screen.c.

Referenced by STSTATUS_showItemHelp().

◆ STSTATUS_statItems

StatusStatItem STSTATUS_statItems[]
Initial value:
= {
{ 2, 3 , 9999 },
{ 3, 5 , 9999 },
{ 4, 6 , 999 },
{ 5, 7 , 999 },
{ 6, 8 , 999 },
{ 7, 9 , 999 },
{ 8, 10 , 999 },
{ 9, 11 , 999 },
{ 10, 12 , 999 },
{ 11, 12 + 1, 999 },
{ 12, 12 + 2, 999 },
{ 13, 12 + 3, 999 },
{ 14, 12 + 4, 999 },
{ 15, 12 + 5, 999 },
{ 16, 12 + 6, 999 },
{ -1, 0, 0 },
}

What the items that raise a stat raise.

Definition at line 1066 of file item_screen.c.

Referenced by STSTATUS_useItem().