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

The mode's main task, which runs the field menu's screens; the scroll bar; the files it loads; and the panels' openings and moves. More...

Include dependency graph for menu.c:

Go to the source code of this file.

Macros

#define SCROLL_BAR_DEPTH   0
 

Functions

void STSTATUS_runScreens (FieldMenuScreen *menu, FieldMenuScreenChildren *children)
 Opens the screen of FIELD_MENU_CHOICE (the item screen when it has none) and, once it closes, the field menu again.
 
void STSTATUS_drawBackground (FieldMenuScreen *menu)
 Draws the scrolling background, sprite 0x1D at (bgScroll, bgScroll): it moves one pixel down and right every other frame, back to 0 at 0x60.
 
void STSTATUS_updateMenu (FieldMenuScreen *menu, FieldMenuScreenChildren *children)
 The mode's main task: loads the files and the background's textures, then runs the screens (STSTATUS_runScreens); while the field menu is open (TASK_DONE) it waits for it to close.
 
FieldMenuScreen * STSTATUS_createMenu (void)
 Creates the mode's main task and requests its background's files, the second half of the game's in the late game.
 
void STSTATUS_loadFiles (void)
 Loads the menu's textures and requests its strings: the menu's, the items', the Digimon's and the skills' names and descriptions.
 
s32 STSTATUS_filesLoading (void)
 Whether the menu's strings are still loading.
 
void STSTATUS_startLerp (MenuLerp *lerp, s32 from, s32 to, s32 frames)
 Starts moving a value from FROM to TO in FRAMES frames, playing SOUND_MENU_OPEN; nothing when they are the same.
 

Detailed Description

The mode's main task, which runs the field menu's screens; the scroll bar; the files it loads; and the panels' openings and moves.

Definition in file menu.c.

Macro Definition Documentation

◆ SCROLL_BAR_DEPTH

#define SCROLL_BAR_DEPTH   0

Definition at line 11 of file menu.c.

Function Documentation

◆ STSTATUS_runScreens()

void STSTATUS_runScreens ( FieldMenuScreen *  menu,
FieldMenuScreenChildren *  children 
)

Opens the screen of FIELD_MENU_CHOICE (the item screen when it has none) and, once it closes, the field menu again.

Definition at line 16 of file menu.c.

Referenced by STSTATUS_updateMenu().

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

◆ STSTATUS_drawBackground()

void STSTATUS_drawBackground ( FieldMenuScreen *  menu)

Draws the scrolling background, sprite 0x1D at (bgScroll, bgScroll): it moves one pixel down and right every other frame, back to 0 at 0x60.

Definition at line 41 of file menu.c.

Referenced by STSTATUS_updateMenu().

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

◆ STSTATUS_updateMenu()

void STSTATUS_updateMenu ( FieldMenuScreen *  menu,
FieldMenuScreenChildren *  children 
)

The mode's main task: loads the files and the background's textures, then runs the screens (STSTATUS_runScreens); while the field menu is open (TASK_DONE) it waits for it to close.

Definition at line 60 of file menu.c.

Referenced by STSTATUS_createMenu().

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

◆ STSTATUS_createMenu()

FieldMenuScreen * STSTATUS_createMenu ( void  )

Creates the mode's main task and requests its background's files, the second half of the game's in the late game.

Definition at line 105 of file menu.c.

Here is the call graph for this function:

◆ STSTATUS_loadFiles()

void STSTATUS_loadFiles ( void  )

Loads the menu's textures and requests its strings: the menu's, the items', the Digimon's and the skills' names and descriptions.

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

< ITMNAM

< ITMINF

< DIGNAM

< DIGINF

< SKLNAM

< SKLINF

Definition at line 130 of file menu.c.

Here is the call graph for this function:

◆ STSTATUS_filesLoading()

s32 STSTATUS_filesLoading ( void  )

Whether the menu's strings are still loading.

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

< ITMNAM

< ITMINF

< DIGNAM

< DIGINF

< SKLNAM

< SKLINF

Definition at line 146 of file menu.c.

◆ STSTATUS_startLerp()

void STSTATUS_startLerp ( MenuLerp *  lerp,
s32  from,
s32  to,
s32  frames 
)

Starts moving a value from FROM to TO in FRAMES frames, playing SOUND_MENU_OPEN; nothing when they are the same.

< SYSTEM03

Definition at line 173 of file menu.c.