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

"PRESS START", then the two options (new game, continue) More...

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

Go to the source code of this file.

Macros

#define MENU_SPRITE(i)   (STDWTITL_menuSprites[LANGUAGE][i])
 The menu's sprites: the European version has them for each language.
 

Functions

void STDWTITL_drawMenu (TitleMenuTask *task)
 Draws the menu: the cursor while it is shown, then "PRESS START" or the two options, the one not picked dimmed.
 
static void runPressStart (TitleMenuTask *task)
 "PRESS START": waits a moment, then for Start (choice 3 after ten seconds), blinks and spreads the two options out from it
 
static void runOptions (TitleMenuTask *task)
 The two options: up and down move between new game and continue, and the confirm button blinks the option and sets choice.
 
void STDWTITL_tickMenu (TitleMenuTask *task)
 The menu's task: once shown, waits for Start on "PRESS START" (choice 3 after ten seconds), blinks and spreads out the two options; then moves between new game and continue, and the confirm button blinks the option and sets choice.
 
void STDWTITL_showMenu (TitleMenuTask *task)
 Shows "PRESS START" (the task's show), only while it waits.
 
void STDWTITL_resetMenu (TitleMenuTask *task)
 Back to waiting for Start on "PRESS START" (the task's reset), only while running; nothing in the overlay calls it.
 
s32 STDWTITL_getMenuChoice (TitleMenuTask *task)
 The menu's choice (the task's getChoice): 0 none yet, 1 new game, 2 continue, 3 timed out.
 
TitleMenuTask * STDWTITL_startMenuTask (s16 skip)
 Creates the title screen's menu (task); skip: the two options shown from the start.
 

Detailed Description

"PRESS START", then the two options (new game, continue)

Definition in file menu.c.

Macro Definition Documentation

◆ MENU_SPRITE

#define MENU_SPRITE (   i)    (STDWTITL_menuSprites[LANGUAGE][i])

The menu's sprites: the European version has them for each language.

Definition at line 9 of file menu.c.

Function Documentation

◆ STDWTITL_drawMenu()

void STDWTITL_drawMenu ( TitleMenuTask *  task)

Draws the menu: the cursor while it is shown, then "PRESS START" or the two options, the one not picked dimmed.

menu.c

Definition at line 14 of file menu.c.

Referenced by STDWTITL_tickMenu().

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

◆ runPressStart()

static void runPressStart ( TitleMenuTask *  task)
inlinestatic

"PRESS START": waits a moment, then for Start (choice 3 after ten seconds), blinks and spreads the two options out from it

< SYSTEM00: a choice is taken

Definition at line 48 of file menu.c.

Referenced by STDWTITL_tickMenu().

Here is the caller graph for this function:

◆ runOptions()

static void runOptions ( TitleMenuTask *  task)
inlinestatic

The two options: up and down move between new game and continue, and the confirm button blinks the option and sets choice.

< SYSTEM02: a cursor moves

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

Definition at line 104 of file menu.c.

Referenced by STDWTITL_tickMenu().

Here is the caller graph for this function:

◆ STDWTITL_tickMenu()

void STDWTITL_tickMenu ( TitleMenuTask *  task)

The menu's task: once shown, waits for Start on "PRESS START" (choice 3 after ten seconds), blinks and spreads out the two options; then moves between new game and continue, and the confirm button blinks the option and sets choice.

Definition at line 158 of file menu.c.

Referenced by STDWTITL_startMenuTask().

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

◆ STDWTITL_showMenu()

void STDWTITL_showMenu ( TitleMenuTask *  task)

Shows "PRESS START" (the task's show), only while it waits.

Definition at line 185 of file menu.c.

Referenced by STDWTITL_startMenuTask().

Here is the caller graph for this function:

◆ STDWTITL_resetMenu()

void STDWTITL_resetMenu ( TitleMenuTask *  task)

Back to waiting for Start on "PRESS START" (the task's reset), only while running; nothing in the overlay calls it.

Definition at line 193 of file menu.c.

Referenced by STDWTITL_startMenuTask().

Here is the caller graph for this function:

◆ STDWTITL_getMenuChoice()

s32 STDWTITL_getMenuChoice ( TitleMenuTask *  task)

The menu's choice (the task's getChoice): 0 none yet, 1 new game, 2 continue, 3 timed out.

Definition at line 204 of file menu.c.

Referenced by STDWTITL_startMenuTask().

Here is the caller graph for this function:

◆ STDWTITL_startMenuTask()

TitleMenuTask * STDWTITL_startMenuTask ( s16  skip)

Creates the title screen's menu (task); skip: the two options shown from the start.

Definition at line 209 of file menu.c.

Referenced by STDWTITL_tickTitle().

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