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

The fifth object of STSTATUS.PRO (see card_screen.c), the fifth screen (STSTATUS_createStatusScreen): its rodata starts at 0x800828B0 (USA). More...

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

Go to the source code of this file.

Functions

void STSTATUS_createStatusWindows (StatsScreen *screen, StatsScreenWindows *windows)
 Creates the windows of the fifth screen.
 
void STSTATUS_showStatusPage (StatsScreen *screen, StatsScreenWindows *windows, s32 member, s32 show)
 As STSTATUS_showCardPage.
 
void STSTATUS_showChosenPage (StatsScreen *screen, StatsScreenWindows *windows, s32 member, s32 show)
 As STSTATUS_showStatusPage, on the first page.
 
void STSTATUS_showStatusChoices (StatsScreen *screen, StatsScreenWindows *windows, s32 show)
 Shows or hides the fifth screen's two options: the digivolution panel and the equipment panel.
 
void STSTATUS_showPartnerSlots (StatsScreen *screen, StatsScreenWindows *windows, s32 show)
 The partner's slots: the entries in it (getPartnerSlots), the one it starts battles as (battleDigivolve) in palette 1, or hides them.
 
void STSTATUS_showPartnerEquipment (StatsScreen *screen, StatsScreenWindows *windows, s32 show)
 The party member's equipment, or the slots' names where it has none.
 
void STSTATUS_showPartnerStats (StatsScreen *screen, StatsScreenWindows *windows, s32 show)
 Shows the party member's stats, in another palette the ones that are raised.
 
void STSTATUS_previewStats (StatsScreen *screen, s32 slot, s32 item)
 Shows the party member's stats as they would be with the item in the slot, in another palette the ones it changes (slot -1: as they are)
 
static void STSTATUS_stepStatusCursor (StatsScreen *screen)
 Moves the member cursor's palette on every 9 frames.
 
void STSTATUS_drawStatusScreen (StatsScreen *screen)
 Draws the partners' portraits and frames, the chosen one's, its equipment and the panels' frames.
 
void STSTATUS_runStatusChoice (StatsScreen *screen, StatsScreenWindows *windows)
 Runs the fifth screen's question: the panels come in, the cursor picks one of the two options and the panels go out.
 
static void STSTATUS_startStatusScreen (StatsScreen *screen)
 Starts the fades of the first page and the title (and, with one party member, of the help's panel); the next substate is the party's size.
 
static void STSTATUS_openStatusScreenAlone (StatsScreen *screen, StatsScreenWindows *windows)
 One member: once the page and the panels are in, shows the page, the title and the help.
 
static void STSTATUS_openFirstOfTwoStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Two members: once the first page and the title are in, shows them and starts the second page and the help's panel.
 
static void STSTATUS_openSecondOfTwoStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Two members: once the second page and the help's panel are in, shows the page and the help.
 
static void STSTATUS_openFirstOfThreeStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Three members: once the first page and the title are in, shows them and starts the second page.
 
static void STSTATUS_openSecondOfThreeStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Three members: once the second page is in, shows it and starts the third page and the help's panel.
 
static void STSTATUS_openThirdStatusPage (StatsScreen *screen, StatsScreenWindows *windows)
 Three members: once the third page and the help's panel are in, shows the page and the help.
 
static void STSTATUS_chooseStatusMember (StatsScreen *screen)
 Choosing a party member: up and down move the cursor, cross closes the pages for the member's question, triangle closes the screen.
 
static void STSTATUS_openStatusPanel (StatsScreen *screen, StatsScreenWindows *windows)
 Creates the chosen option's panel: the digivolution panel or the equipment panel.
 
static void STSTATUS_waitStatusPanel (StatsScreen *screen, StatsScreenWindows *windows)
 Once the panel is gone, goes back to the question.
 
static void STSTATUS_closeStatusScreen (StatsScreen *screen, StatsScreenWindows *windows)
 Starts closing the pages: the last page, the help's panel and, with one member, the title.
 
static void STSTATUS_closeStatusScreenAlone (StatsScreen *screen)
 One member: once the page and the panels are closed, goes on to the end.
 
static void STSTATUS_closeSecondOfTwoStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Two members: once the second page and the help's panel are closed, starts closing the first and the title.
 
static void STSTATUS_closeThirdStatusPage (StatsScreen *screen, StatsScreenWindows *windows)
 Three members: once the third page and the help's panel are closed, starts closing the second.
 
static void STSTATUS_closeSecondOfThreeStatusPages (StatsScreen *screen, StatsScreenWindows *windows)
 Three members: once the second page is closed, starts closing the first and the title.
 
static void STSTATUS_closeFirstStatusPage (StatsScreen *screen)
 Two or three members: once the first page and the title are closed, goes on to the end.
 
static void STSTATUS_endStatusPages (StatsScreen *screen)
 With the pages closed: the chosen member's question, or the screen's end.
 
void STSTATUS_runStatusScreen (StatsScreen *screen, StatsScreenWindows *windows)
 The fifth screen's steps: the pages fade in, a party member is chosen and its panel opens, then the pages fade out.
 
void STSTATUS_updateStatusScreen (StatsScreen *screen, StatsScreenWindows *windows)
 The fifth screen's task: counts the party, starts the pages' fades and creates the windows, then runs and draws the screen.
 
Task * STSTATUS_createStatusScreen (FieldMenuScreen *menu, s32 extra)
 Creates the field menu's fifth screen (task), the party's stats, slots and equipment.
 

Variables

s32 STSTATUS_pageStats4 []
 
s32 STSTATUS_equipStats []
 The stats screen 4 shows, as STSTATUS_panelStats.
 
s32 STSTATUS_equipStrings []
 The strings of the empty equipment slots, as STSTATUS_slotStrings.
 

Detailed Description

The fifth object of STSTATUS.PRO (see card_screen.c), the fifth screen (STSTATUS_createStatusScreen): its rodata starts at 0x800828B0 (USA).

Definition in file status_screen.c.

Function Documentation

◆ STSTATUS_createStatusWindows()

void STSTATUS_createStatusWindows ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)

Creates the windows of the fifth screen.

status_screen.c

Definition at line 7 of file status_screen.c.

Referenced by STSTATUS_updateStatusScreen().

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

◆ STSTATUS_showStatusPage()

void STSTATUS_showStatusPage ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  member,
s32  show 
)

As STSTATUS_showCardPage.

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

Definition at line 58 of file status_screen.c.

Referenced by STSTATUS_closeSecondOfThreeStatusPages(), STSTATUS_closeSecondOfTwoStatusPages(), STSTATUS_closeStatusScreen(), STSTATUS_closeThirdStatusPage(), STSTATUS_openFirstOfThreeStatusPages(), STSTATUS_openFirstOfTwoStatusPages(), STSTATUS_openSecondOfThreeStatusPages(), STSTATUS_openSecondOfTwoStatusPages(), STSTATUS_openStatusScreenAlone(), and STSTATUS_openThirdStatusPage().

Here is the caller graph for this function:

◆ STSTATUS_showChosenPage()

void STSTATUS_showChosenPage ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  member,
s32  show 
)

As STSTATUS_showStatusPage, on the first page.

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

Definition at line 89 of file status_screen.c.

Referenced by STSTATUS_runStatusChoice().

Here is the caller graph for this function:

◆ STSTATUS_showStatusChoices()

void STSTATUS_showStatusChoices ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  show 
)

Shows or hides the fifth screen's two options: the digivolution panel and the equipment panel.

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

Definition at line 123 of file status_screen.c.

Referenced by STSTATUS_runStatusChoice().

Here is the caller graph for this function:

◆ STSTATUS_showPartnerSlots()

void STSTATUS_showPartnerSlots ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  show 
)

The partner's slots: the entries in it (getPartnerSlots), the one it starts battles as (battleDigivolve) in palette 1, or hides them.

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

< DIGNAM

< a light blue: what is highlighted or current

Definition at line 139 of file status_screen.c.

Referenced by STSTATUS_runStatusChoice().

Here is the caller graph for this function:

◆ STSTATUS_showPartnerEquipment()

void STSTATUS_showPartnerEquipment ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  show 
)

The party member's equipment, or the slots' names where it has none.

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

< ITMNAM

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

Definition at line 173 of file status_screen.c.

Referenced by STSTATUS_runStatusChoice().

Here is the caller graph for this function:

◆ STSTATUS_showPartnerStats()

void STSTATUS_showPartnerStats ( StatsScreen *  screen,
StatsScreenWindows *  windows,
s32  show 
)

Shows the party member's stats, in another palette the ones that are raised.

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

Definition at line 198 of file status_screen.c.

Referenced by STSTATUS_previewStats(), and STSTATUS_runStatusChoice().

Here is the caller graph for this function:

◆ STSTATUS_previewStats()

void STSTATUS_previewStats ( StatsScreen *  screen,
s32  slot,
s32  item 
)

Shows the party member's stats as they would be with the item in the slot, in another palette the ones it changes (slot -1: as they are)

< takes slots 2 and 3

< takes slots 2 and 3

< one of its group at a time

< takes slots 2 and 3

< a light blue: what is highlighted or current

< a light blue: what is highlighted or current

Definition at line 246 of file status_screen.c.

Referenced by STSTATUS_createStatusScreen().

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

◆ STSTATUS_stepStatusCursor()

static void STSTATUS_stepStatusCursor ( StatsScreen *  screen)
inlinestatic

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

Definition at line 367 of file status_screen.c.

Referenced by STSTATUS_drawStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_drawStatusScreen()

void STSTATUS_drawStatusScreen ( StatsScreen *  screen)

Draws the partners' portraits and frames, the chosen one's, its equipment and the panels' frames.

< 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

< 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 379 of file status_screen.c.

Referenced by STSTATUS_updateStatusScreen().

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

◆ STSTATUS_runStatusChoice()

void STSTATUS_runStatusChoice ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)

Runs the fifth screen's question: the panels come in, the cursor picks one of the two options and the panels go out.

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

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 497 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_startStatusScreen()

static void STSTATUS_startStatusScreen ( StatsScreen *  screen)
inlinestatic

Starts the fades of the first page and the title (and, with one party member, of the help's panel); the next substate is the party's size.

Definition at line 617 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_openStatusScreenAlone()

static void STSTATUS_openStatusScreenAlone ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

One member: once the page and the panels are in, shows the page, the title 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 628 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_openFirstOfTwoStatusPages()

static void STSTATUS_openFirstOfTwoStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Two members: once the first page and the title are in, shows them and starts the second page and the help's panel.

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

Definition at line 642 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_openSecondOfTwoStatusPages()

static void STSTATUS_openSecondOfTwoStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Two members: once the second page and the help's panel are in, shows the page and the help.

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

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

Definition at line 655 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_openFirstOfThreeStatusPages()

static void STSTATUS_openFirstOfThreeStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

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

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

Definition at line 667 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_openSecondOfThreeStatusPages()

static void STSTATUS_openSecondOfThreeStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Three members: once the second page is in, shows it and starts the third page and the help's panel.

Definition at line 679 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_openThirdStatusPage()

static void STSTATUS_openThirdStatusPage ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Three members: once the third page and the help's panel are in, shows the page and the help.

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

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

Definition at line 690 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_chooseStatusMember()

static void STSTATUS_chooseStatusMember ( StatsScreen *  screen)
inlinestatic

Choosing a party member: up and down move the cursor, cross closes the pages for the member's question, triangle closes the screen.

< SYSTEM06

< SYSTEM07

< SYSTEM01

Definition at line 702 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_openStatusPanel()

static void STSTATUS_openStatusPanel ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Creates the chosen option's panel: the digivolution panel or the equipment panel.

Definition at line 734 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_waitStatusPanel()

static void STSTATUS_waitStatusPanel ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Once the panel is gone, goes back to the question.

Definition at line 746 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeStatusScreen()

static void STSTATUS_closeStatusScreen ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Starts closing the pages: the last page, the help's panel and, with one member, the title.

Definition at line 755 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_closeStatusScreenAlone()

static void STSTATUS_closeStatusScreenAlone ( StatsScreen *  screen)
inlinestatic

One member: once the page and the panels are closed, goes on to the end.

Definition at line 769 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeSecondOfTwoStatusPages()

static void STSTATUS_closeSecondOfTwoStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Two members: once the second page and the help's panel are closed, starts closing the first and the title.

Definition at line 779 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_closeThirdStatusPage()

static void STSTATUS_closeThirdStatusPage ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

Three members: once the third page and the help's panel are closed, starts closing the second.

Definition at line 792 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_closeSecondOfThreeStatusPages()

static void STSTATUS_closeSecondOfThreeStatusPages ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)
inlinestatic

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

Definition at line 803 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

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

◆ STSTATUS_closeFirstStatusPage()

static void STSTATUS_closeFirstStatusPage ( StatsScreen *  screen)
inlinestatic

Two or three members: once the first page and the title are closed, goes on to the end.

Definition at line 815 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_endStatusPages()

static void STSTATUS_endStatusPages ( StatsScreen *  screen)
inlinestatic

With the pages closed: the chosen member's question, or the screen's end.

Definition at line 823 of file status_screen.c.

Referenced by STSTATUS_runStatusScreen().

Here is the caller graph for this function:

◆ STSTATUS_runStatusScreen()

void STSTATUS_runStatusScreen ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)

The fifth screen's steps: the pages fade in, a party member is chosen and its panel opens, then the pages fade out.

Definition at line 833 of file status_screen.c.

Referenced by STSTATUS_updateStatusScreen().

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

◆ STSTATUS_updateStatusScreen()

void STSTATUS_updateStatusScreen ( StatsScreen *  screen,
StatsScreenWindows *  windows 
)

The fifth screen's task: counts the party, starts the pages' fades and creates the windows, then runs and draws the screen.

Definition at line 900 of file status_screen.c.

Referenced by STSTATUS_createStatusScreen().

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

◆ STSTATUS_createStatusScreen()

Task * STSTATUS_createStatusScreen ( FieldMenuScreen *  menu,
s32  extra 
)

Creates the field menu's fifth screen (task), the party's stats, slots and equipment.

Definition at line 941 of file status_screen.c.

Here is the call graph for this function:

Variable Documentation

◆ STSTATUS_pageStats4

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

Definition at line 951 of file status_screen.c.

Referenced by STSTATUS_showChosenPage(), and STSTATUS_showStatusPage().

◆ STSTATUS_equipStats

s32 STSTATUS_equipStats[]
Initial value:
= {
6 , 7 , 8 , 9 ,
10 , 11 , 12 , 12 + 1,
12 + 2, 12 + 3, 12 + 4, 12 + 5,
12 + 6,
}

The stats screen 4 shows, as STSTATUS_panelStats.

the stats screen 4 shows

Definition at line 956 of file status_screen.c.

Referenced by STSTATUS_previewStats(), and STSTATUS_showPartnerStats().

◆ STSTATUS_equipStrings

s32 STSTATUS_equipStrings[]
Initial value:
= {
65, 66, 67, 77,
68, 68,
}

The strings of the empty equipment slots, as STSTATUS_slotStrings.

Definition at line 963 of file status_screen.c.

Referenced by STSTATUS_showPartnerEquipment().