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

The lab's main menu, which opens one of its three screens. More...

Include dependency graph for menu.c:

Go to the source code of this file.

Functions

void STGDGLAB_openMenu (LabMenu *menu)
 The main menu's open: fades its page back in, which then shows the party member's stats again (STGDGLAB_updateMenu)
 
void STGDGLAB_closeMenu (LabMenu *menu)
 The main menu's close: fades its page out and hides its stats and name, while a screen is open over it.
 
void STGDGLAB_showMenuPage (LabMenu *menu, LabMenuWindows *windows)
 Shows the main menu's page: the name and five stats (STGDGLAB_menuStats) of the lab's party member, or empty strings and a grey entries hint without one.
 
static void showMenuTitle (LabMenu *menu, LabMenuWindows *windows)
 The menu's title and button hint, each once its panel has faded in; then fades the options' panel in.
 
static void showMenuOptions (LabMenu *menu, LabMenuWindows *windows)
 Once their panel has faded in, the three screens' names and the cursor.
 
static void pickMenuOption (LabMenu *menu, LabMenuWindows *windows)
 Up and down pick a screen; cross goes on to the party, triangle leaves the lab.
 
static void pickMember (LabMenu *menu, LabMenuWindows *windows)
 Left and right go through the party's members; cross opens the screen for the member, triangle goes back to the screens, circle (on "Switch Digimon", with a member) opens the member's entries.
 
static void closeMenuPage (LabMenu *menu, LabMenuWindows *windows)
 Once the member panel has faded out, fades the page out and hides its windows (the stats and name only when going back to the screens)
 
static void showMenuPageLabel (LabMenu *menu, LabMenuWindows *windows)
 Once the page's panel has faded in, the member's page and its label.
 
static void showMenuPageTitle (LabMenu *menu, LabMenuWindows *windows)
 Once their panels have faded in, the entries hint (on "Switch Digimon") and the title that asks for a member for the picked screen.
 
static void waitMenuPageClosed (LabMenu *menu)
 Once the page's panels have faded out (all but the page itself when a screen or the entries open): opens the screen, the member's entries or the screens' menu again.
 
void STGDGLAB_runMenu (LabMenu *menu, LabMenuWindows *windows)
 The main menu's states: fades its panels in, picks one of the three screens with up and down, then shows the party's stats while left and right go through them; circle opens the partner's entries.
 
void STGDGLAB_drawMenu (LabMenu *menu, void *children)
 Draws the main menu's frames and the party's animations.
 
void STGDGLAB_updateMenu (LabMenu *menu, void *children)
 The main menu's task: runs and draws the menu; while its page fades (TASK_DONE, from STGDGLAB_openMenu and STGDGLAB_closeMenu) it only draws.
 
LabMenu * STGDGLAB_createMenu (Lab *lab)
 Creates the lab's main menu (task)
 

Variables

s32 STGDGLAB_menuStats []
 The stats the menu's page shows, in PartnerTotals.stats.
 

Detailed Description

The lab's main menu, which opens one of its three screens.

Definition in file menu.c.

Function Documentation

◆ STGDGLAB_openMenu()

void STGDGLAB_openMenu ( LabMenu *  menu)

The main menu's open: fades its page back in, which then shows the party member's stats again (STGDGLAB_updateMenu)

menu.c

Definition at line 7 of file menu.c.

Referenced by STGDGLAB_createMenu().

Here is the caller graph for this function:

◆ STGDGLAB_closeMenu()

void STGDGLAB_closeMenu ( LabMenu *  menu)

The main menu's close: fades its page out and hides its stats and name, while a screen is open over it.

Definition at line 15 of file menu.c.

Referenced by STGDGLAB_createMenu().

Here is the caller graph for this function:

◆ STGDGLAB_showMenuPage()

void STGDGLAB_showMenuPage ( LabMenu *  menu,
LabMenuWindows *  windows 
)

Shows the main menu's page: the name and five stats (STGDGLAB_menuStats) of the lab's party member, or empty strings and a grey entries hint without one.

< DGLABO: STGDGLAB's

< DGLABO: STGDGLAB's

< DGLABO: STGDGLAB's

< DGLABO: STGDGLAB's

< what is unavailable

Definition at line 41 of file menu.c.

Referenced by pickMember(), showMenuPageLabel(), and STGDGLAB_updateMenu().

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

◆ showMenuTitle()

static void showMenuTitle ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

The menu's title and button hint, each once its panel has faded in; then fades the options' panel in.

< DGLABO: STGDGLAB's

< DGLABO: STGDGLAB's

Definition at line 97 of file menu.c.

Referenced by STGDGLAB_runMenu().

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

◆ showMenuOptions()

static void showMenuOptions ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Once their panel has faded in, the three screens' names and the cursor.

< DGLABO: STGDGLAB's

Definition at line 126 of file menu.c.

Referenced by STGDGLAB_runMenu().

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

◆ pickMenuOption()

static void pickMenuOption ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Up and down pick a screen; cross goes on to the party, triangle leaves the lab.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 146 of file menu.c.

Referenced by STGDGLAB_runMenu().

Here is the caller graph for this function:

◆ pickMember()

static void pickMember ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Left and right go through the party's members; cross opens the screen for the member, triangle goes back to the screens, circle (on "Switch Digimon", with a member) opens the member's entries.

< SYSTEM06

< SYSTEM07

< SYSTEM01

< SYSTEM07

Definition at line 178 of file menu.c.

Referenced by STGDGLAB_runMenu().

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

◆ closeMenuPage()

static void closeMenuPage ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Once the member panel has faded out, fades the page out and hides its windows (the stats and name only when going back to the screens)

Definition at line 212 of file menu.c.

Referenced by STGDGLAB_runMenu().

Here is the caller graph for this function:

◆ showMenuPageLabel()

static void showMenuPageLabel ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Once the page's panel has faded in, the member's page and its label.

< DGLABO: STGDGLAB's

Definition at line 250 of file menu.c.

Referenced by STGDGLAB_runMenu().

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

◆ showMenuPageTitle()

static void showMenuPageTitle ( LabMenu *  menu,
LabMenuWindows *  windows 
)
inlinestatic

Once their panels have faded in, the entries hint (on "Switch Digimon") and the title that asks for a member for the picked screen.

< DGLABO: STGDGLAB's

< DGLABO: STGDGLAB's

Definition at line 266 of file menu.c.

Referenced by STGDGLAB_runMenu().

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

◆ waitMenuPageClosed()

static void waitMenuPageClosed ( LabMenu *  menu)
inlinestatic

Once the page's panels have faded out (all but the page itself when a screen or the entries open): opens the screen, the member's entries or the screens' menu again.

Definition at line 288 of file menu.c.

Referenced by STGDGLAB_runMenu().

Here is the caller graph for this function:

◆ STGDGLAB_runMenu()

void STGDGLAB_runMenu ( LabMenu *  menu,
LabMenuWindows *  windows 
)

The main menu's states: fades its panels in, picks one of the three screens with up and down, then shows the party's stats while left and right go through them; circle opens the partner's entries.

Definition at line 313 of file menu.c.

Referenced by STGDGLAB_updateMenu().

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

◆ STGDGLAB_drawMenu()

void STGDGLAB_drawMenu ( LabMenu *  menu,
void *  children 
)

Draws the main menu's frames and the party's animations.

< 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 425 of file menu.c.

Referenced by STGDGLAB_updateMenu().

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

◆ STGDGLAB_updateMenu()

void STGDGLAB_updateMenu ( LabMenu *  menu,
void *  children 
)

The main menu's task: runs and draws the menu; while its page fades (TASK_DONE, from STGDGLAB_openMenu and STGDGLAB_closeMenu) it only draws.

Definition at line 546 of file menu.c.

Referenced by STGDGLAB_createMenu().

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

◆ STGDGLAB_createMenu()

LabMenu * STGDGLAB_createMenu ( Lab *  lab)

Creates the lab's main menu (task)

Definition at line 580 of file menu.c.

Referenced by STGDGLAB_runLab().

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

Variable Documentation

◆ STGDGLAB_menuStats

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

The stats the menu's page shows, in PartnerTotals.stats.

the stats the menu's page shows

Definition at line 592 of file menu.c.

Referenced by STGDGLAB_showMenuPage().