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

The training menu. More...

#include "menus/gym.h"
Include dependency graph for menu.c:

Go to the source code of this file.

Functions

void STGTRAIN_createMenuWindows (TrainMenu *menu, TextWindow **win)
 Creates the training menu's text windows.
 
void STGTRAIN_showTrainingInfo (TrainMenu *menu, TextWindow **win, s32 show)
 Shows the name and description of the selected training (show) or hides them.
 
void STGTRAIN_drawMenu (TrainMenu *menu)
 Draws the training menu: its panels, the trainings of the page and the cursor.
 
static void STGTRAIN_showPageHint (TrainMenu *menu, TextWindow **win)
 Shows the hint to the other page: R1 on the first page, L1 on the second.
 
static void STGTRAIN_pickTraining (TrainMenu *menu, TextWindow **win)
 Turns the page with L1 or R1 when the gym has more than five trainings, putting the cursor on the new page's first training; or moves the cursor to the next training in the direction pressed, and closes the menu with the one under it picked (cross) or none (triangle)
 
void STGTRAIN_runMenu (TrainMenu *menu, TextWindow **win)
 Runs the training menu: opens its panels, moves the cursor over the trainings of a page (L1 and R1 turn the pages when the gym has more than five), and closes with a training picked (cross) or none (triangle).
 
void STGTRAIN_updateMenu (TrainMenu *menu, TextWindow **win)
 The training menu's task: a grid of trainings on two pages, filled from the gym's table (the trainings it has), with the cursor on the last one.
 
void STGTRAIN_openMenu (TrainMenu *menu)
 Opens the training menu (its substate 0)
 
void STGTRAIN_closeMenu (TrainMenu *menu)
 Closes the training menu (its substate 0x32)
 
void STGTRAIN_showMenuInfo (TrainMenu *menu)
 Shows the selected training's name and description.
 
TrainMenu * STGTRAIN_createMenu (TrainScreen *screen)
 Creates the training menu.
 

Detailed Description

The training menu.

Definition in file menu.c.

Function Documentation

◆ STGTRAIN_createMenuWindows()

void STGTRAIN_createMenuWindows ( TrainMenu *  menu,
TextWindow **  win 
)

Creates the training menu's text windows.

menu.c

Definition at line 6 of file menu.c.

Referenced by STGTRAIN_updateMenu().

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

◆ STGTRAIN_showTrainingInfo()

void STGTRAIN_showTrainingInfo ( TrainMenu *  menu,
TextWindow **  win,
s32  show 
)

Shows the name and description of the selected training (show) or hides them.

Definition at line 14 of file menu.c.

Referenced by STGTRAIN_pickTraining(), STGTRAIN_runMenu(), and STGTRAIN_showMenuInfo().

Here is the caller graph for this function:

◆ STGTRAIN_drawMenu()

void STGTRAIN_drawMenu ( TrainMenu *  menu)

Draws the training menu: its panels, the trainings of the page and the cursor.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< its sprite bank

< its sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< its sprite bank

< its sprite bank

< its sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< its sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< its sprite bank

Definition at line 30 of file menu.c.

Referenced by STGTRAIN_updateMenu().

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

◆ STGTRAIN_showPageHint()

static void STGTRAIN_showPageHint ( TrainMenu *  menu,
TextWindow **  win 
)
inlinestatic

Shows the hint to the other page: R1 on the first page, L1 on the second.

Definition at line 125 of file menu.c.

Referenced by STGTRAIN_pickTraining(), and STGTRAIN_runMenu().

Here is the caller graph for this function:

◆ STGTRAIN_pickTraining()

static void STGTRAIN_pickTraining ( TrainMenu *  menu,
TextWindow **  win 
)
inlinestatic

Turns the page with L1 or R1 when the gym has more than five trainings, putting the cursor on the new page's first training; or moves the cursor to the next training in the direction pressed, and closes the menu with the one under it picked (cross) or none (triangle)

< SYSTEM06

< SYSTEM06

< SYSTEM06

< SYSTEM01

Definition at line 139 of file menu.c.

Referenced by STGTRAIN_runMenu().

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

◆ STGTRAIN_runMenu()

void STGTRAIN_runMenu ( TrainMenu *  menu,
TextWindow **  win 
)

Runs the training menu: opens its panels, moves the cursor over the trainings of a page (L1 and R1 turn the pages when the gym has more than five), and closes with a training picked (cross) or none (triangle).

Definition at line 235 of file menu.c.

Referenced by STGTRAIN_updateMenu().

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

◆ STGTRAIN_updateMenu()

void STGTRAIN_updateMenu ( TrainMenu *  menu,
TextWindow **  win 
)

The training menu's task: a grid of trainings on two pages, filled from the gym's table (the trainings it has), with the cursor on the last one.

Definition at line 310 of file menu.c.

Referenced by STGTRAIN_createMenu().

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

◆ STGTRAIN_openMenu()

void STGTRAIN_openMenu ( TrainMenu *  menu)

Opens the training menu (its substate 0)

Definition at line 420 of file menu.c.

Referenced by STGTRAIN_createMenu().

Here is the caller graph for this function:

◆ STGTRAIN_closeMenu()

void STGTRAIN_closeMenu ( TrainMenu *  menu)

Closes the training menu (its substate 0x32)

Definition at line 426 of file menu.c.

Referenced by STGTRAIN_createMenu().

Here is the caller graph for this function:

◆ STGTRAIN_showMenuInfo()

void STGTRAIN_showMenuInfo ( TrainMenu *  menu)

Shows the selected training's name and description.

Definition at line 432 of file menu.c.

Referenced by STGTRAIN_createMenu().

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

◆ STGTRAIN_createMenu()

TrainMenu * STGTRAIN_createMenu ( TrainScreen *  screen)

Creates the training menu.

Definition at line 437 of file menu.c.

Referenced by STGTRAIN_runScreen().

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