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

The ninth object of STSTATUS.PRO (see card_screen.c), the screen of STSTATUS_createSortScreen: its rodata starts at 0x80082C88 (USA). More...

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

Go to the source code of this file.

Functions

void STSTATUS_createSortWindows (SortScreen *screen, SortScreenWindows *windows)
 Creates the party order screen's windows: the title, the help and the party's pages.
 
void STSTATUS_showSortPage (SortScreen *screen, SortScreenWindows *windows, s32 member, s32 show)
 As STSTATUS_showCardPage.
 
static void STSTATUS_stepSortCursor (SortScreen *screen)
 Moves the member cursor's palette on every 8 frames.
 
static void STSTATUS_animateSortPortraits (SortScreen *screen)
 Moves the partners' portraits to their next frames every 13 frames.
 
static void STSTATUS_stepSortArrow (SortScreen *screen)
 Moves the swap arrow's palette on every 11 frames.
 
void STSTATUS_drawSortScreen (SortScreen *screen)
 Draws the cursors, the partners' portraits and frames, the two being swapped squashed by the fade, and the swap's arrow.
 
static void STSTATUS_openFirstSortPage (SortScreen *screen, SortScreenWindows *windows)
 Once the first page and its panel are in, shows the page and, with one member, the help, else the title and starts the second page.
 
static void STSTATUS_openSecondSortPage (SortScreen *screen, SortScreenWindows *windows)
 Once the second page is in, shows it and, with two members, the help, else starts the third page.
 
static void STSTATUS_openThirdSortPage (SortScreen *screen, SortScreenWindows *windows)
 Once the third page and the help's panel are in, shows the page and the help.
 
static void STSTATUS_chooseFirstToSwap (SortScreen *screen, SortScreenWindows *windows)
 Choosing the first member to swap: up and down move the cursor (wrapping), cross picks the member and moves the arrow to the next one, triangle closes the screen.
 
static void STSTATUS_chooseSecondToSwap (SortScreen *screen, SortScreenWindows *windows)
 Choosing whom to swap the first member with: up and down move the arrow (wrapping, past the first), cross hides both pages, triangle goes back.
 
static void STSTATUS_swapMembers (SortScreen *screen)
 Once both pages are hidden, swaps the two members in the party and starts their portraits again.
 
static void STSTATUS_showSwappedPages (SortScreen *screen, SortScreenWindows *windows)
 Once the fade is back, shows both pages again and goes back to choosing.
 
static void STSTATUS_closeSortScreen (SortScreen *screen, SortScreenWindows *windows)
 Starts closing the screen: the help, the last page and its panel.
 
static void STSTATUS_closeSortScreenAlone (SortScreen *screen)
 One member: ends the screen once the page is closed.
 
static void STSTATUS_closeSecondOfTwoSortPages (SortScreen *screen, SortScreenWindows *windows)
 Two members: once the second page and the help's panel are closed, starts closing the first and the title.
 
static void STSTATUS_closeFirstSortPage (SortScreen *screen)
 Two or three members: ends the screen once the first page and the title are closed.
 
static void STSTATUS_closeThirdSortPage (SortScreen *screen, SortScreenWindows *windows)
 Three members: once the third page and the help's panel are closed, starts closing the second.
 
static void STSTATUS_closeSecondOfThreeSortPages (SortScreen *screen, SortScreenWindows *windows)
 Three members: once the second page is closed, starts closing the first and the title.
 
void STSTATUS_runSortScreen (SortScreen *screen, SortScreenWindows *windows)
 The party order screen's steps: the pages fade in, two members are chosen and swapped, then the pages fade out.
 
void STSTATUS_updateSortScreen (SortScreen *screen, SortScreenWindows *windows)
 The party order screen's task: counts the party, starts the fades and creates the windows, then runs and draws the screen.
 
Task * STSTATUS_createSortScreen (FieldMenuScreen *menu, s32 extra)
 Creates the field menu's party order screen (task), where two members swap places.
 

Variables

s32 STSTATUS_pageStats9 []
 

Detailed Description

The ninth object of STSTATUS.PRO (see card_screen.c), the screen of STSTATUS_createSortScreen: its rodata starts at 0x80082C88 (USA).

Definition in file sort_screen.c.

Function Documentation

◆ STSTATUS_createSortWindows()

void STSTATUS_createSortWindows ( SortScreen *  screen,
SortScreenWindows *  windows 
)

Creates the party order screen's windows: the title, the help and the party's pages.

sort_screen.c

Definition at line 8 of file sort_screen.c.

Referenced by STSTATUS_updateSortScreen().

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

◆ STSTATUS_showSortPage()

void STSTATUS_showSortPage ( SortScreen *  screen,
SortScreenWindows *  windows,
s32  member,
s32  show 
)

As STSTATUS_showCardPage.

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

Definition at line 32 of file sort_screen.c.

Referenced by STSTATUS_chooseSecondToSwap(), STSTATUS_closeSecondOfThreeSortPages(), STSTATUS_closeSecondOfTwoSortPages(), STSTATUS_closeSortScreen(), STSTATUS_closeThirdSortPage(), STSTATUS_openFirstSortPage(), STSTATUS_openSecondSortPage(), STSTATUS_openThirdSortPage(), and STSTATUS_showSwappedPages().

Here is the caller graph for this function:

◆ STSTATUS_stepSortCursor()

static void STSTATUS_stepSortCursor ( SortScreen *  screen)
inlinestatic

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

Definition at line 63 of file sort_screen.c.

Referenced by STSTATUS_drawSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_animateSortPortraits()

static void STSTATUS_animateSortPortraits ( SortScreen *  screen)
inlinestatic

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

Definition at line 74 of file sort_screen.c.

Referenced by STSTATUS_drawSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_stepSortArrow()

static void STSTATUS_stepSortArrow ( SortScreen *  screen)
inlinestatic

Moves the swap arrow's palette on every 11 frames.

Definition at line 91 of file sort_screen.c.

Referenced by STSTATUS_drawSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_drawSortScreen()

void STSTATUS_drawSortScreen ( SortScreen *  screen)

Draws the cursors, the partners' portraits and frames, the two being swapped squashed by the fade, and the swap's 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

Definition at line 103 of file sort_screen.c.

Referenced by STSTATUS_updateSortScreen().

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

◆ STSTATUS_openFirstSortPage()

static void STSTATUS_openFirstSortPage ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

Once the first page and its panel are in, shows the page and, with one member, the help, else the title and starts the second page.

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

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

Definition at line 230 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_openSecondSortPage()

static void STSTATUS_openSecondSortPage ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

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

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

Definition at line 251 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_openThirdSortPage()

static void STSTATUS_openThirdSortPage ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

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

Definition at line 269 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_chooseFirstToSwap()

static void STSTATUS_chooseFirstToSwap ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

Choosing the first member to swap: up and down move the cursor (wrapping), cross picks the member and moves the arrow to the next one, triangle closes the screen.

< SYSTEM06

< SYSTEM07

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

< SYSTEM01

Definition at line 281 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_chooseSecondToSwap()

static void STSTATUS_chooseSecondToSwap ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

Choosing whom to swap the first member with: up and down move the arrow (wrapping, past the first), cross hides both pages, triangle goes back.

< SYSTEM06

< SYSTEM07

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

< SYSTEM01

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

Definition at line 320 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_swapMembers()

static void STSTATUS_swapMembers ( SortScreen *  screen)
inlinestatic

Once both pages are hidden, swaps the two members in the party and starts their portraits again.

Definition at line 359 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_showSwappedPages()

static void STSTATUS_showSwappedPages ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

Once the fade is back, shows both pages again and goes back to choosing.

Definition at line 375 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_closeSortScreen()

static void STSTATUS_closeSortScreen ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

Starts closing the screen: the help, the last page and its panel.

Definition at line 384 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_closeSortScreenAlone()

static void STSTATUS_closeSortScreenAlone ( SortScreen *  screen)
inlinestatic

One member: ends the screen once the page is closed.

Definition at line 410 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeSecondOfTwoSortPages()

static void STSTATUS_closeSecondOfTwoSortPages ( SortScreen *  screen,
SortScreenWindows *  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 419 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_closeFirstSortPage()

static void STSTATUS_closeFirstSortPage ( SortScreen *  screen)
inlinestatic

Two or three members: ends the screen once the first page and the title are closed.

Definition at line 432 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

Here is the caller graph for this function:

◆ STSTATUS_closeThirdSortPage()

static void STSTATUS_closeThirdSortPage ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

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

Definition at line 441 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_closeSecondOfThreeSortPages()

static void STSTATUS_closeSecondOfThreeSortPages ( SortScreen *  screen,
SortScreenWindows *  windows 
)
inlinestatic

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

Definition at line 452 of file sort_screen.c.

Referenced by STSTATUS_runSortScreen().

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

◆ STSTATUS_runSortScreen()

void STSTATUS_runSortScreen ( SortScreen *  screen,
SortScreenWindows *  windows 
)

The party order screen's steps: the pages fade in, two members are chosen and swapped, then the pages fade out.

Definition at line 464 of file sort_screen.c.

Referenced by STSTATUS_updateSortScreen().

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

◆ STSTATUS_updateSortScreen()

void STSTATUS_updateSortScreen ( SortScreen *  screen,
SortScreenWindows *  windows 
)

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

Definition at line 524 of file sort_screen.c.

Referenced by STSTATUS_createSortScreen().

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

◆ STSTATUS_createSortScreen()

Task * STSTATUS_createSortScreen ( FieldMenuScreen *  menu,
s32  extra 
)

Creates the field menu's party order screen (task), where two members swap places.

Definition at line 560 of file sort_screen.c.

Here is the call graph for this function:

Variable Documentation

◆ STSTATUS_pageStats9

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

Definition at line 569 of file sort_screen.c.

Referenced by STSTATUS_showSortPage().