coastline 0.0.4
Loading...
Searching...
No Matches
mainmenu.h File Reference

The main menu, and the starts of a championship or a time attack that the save menu also uses after loading. More...

#include <PR/ultratypes.h>
#include "racemenu.h"
Include dependency graph for mainmenu.h:

Go to the source code of this file.

Functions

void StartChampionshipRace (void)
 Start the next race of the championship for one player.
void StartTimeAttack (void)
 Start a time attack for one player.

Variables

MenuItem * g_apMainMenuItems []
 The items of the main menu, ending with NULL.
Texture g_MainMenuTitleTextureDesc
 The picture of the title of the main menu.
s32 g_dwMainMenuEntrySource
 The start that led back to the main menu: 1 for a championship, 2 for a time attack, and 0 otherwise.
s32 g_dwMainMenuItemCount
 The number of choices in the main menu.
s32 g_dwIsPaintMode
 Whether the track selection leads to the paint shop.

Detailed Description

The main menu, and the starts of a championship or a time attack that the save menu also uses after loading.

Function Documentation

◆ StartChampionshipRace()

void StartChampionshipRace ( void )

Start the next race of the championship for one player.

Ghidra address:
USA: 0x80211150
Ghidra address:
Asia: 0x80210CE0
Ghidra address:
EUR: 0x80210fb0
Ghidra address:
JPN: 0x80210ea0

◆ StartTimeAttack()

void StartTimeAttack ( void )

Start a time attack for one player.

Ghidra address:
USA: 0x80211194
Ghidra address:
Asia: 0x80210D24
Ghidra address:
EUR: 0x80210ff4
Ghidra address:
JPN: 0x80210ee4

Variable Documentation

◆ g_apMainMenuItems

MenuItem* g_apMainMenuItems[]
extern

The items of the main menu, ending with NULL.

Ghidra address:
USA: 0x80272360
Ghidra address:
Asia: 0x80271EB0
Ghidra address:
EUR: 0x80274340
Ghidra address:
JPN: 0x80273df0

◆ g_MainMenuTitleTextureDesc

Texture g_MainMenuTitleTextureDesc
extern

The picture of the title of the main menu.

Ghidra address:
USA: 0x802722c0
Ghidra address:
Asia: 0x80271E10
Ghidra address:
EUR: 0x802742a0

◆ g_dwMainMenuEntrySource

s32 g_dwMainMenuEntrySource
extern

The start that led back to the main menu: 1 for a championship, 2 for a time attack, and 0 otherwise.

The main menu selects the matching item and clears it.

Ghidra address:
USA: 0x80272380
Ghidra address:
Asia: 0x80271ED0
Ghidra address:
EUR: 0x80274360
Ghidra address:
JPN: 0x80273e10

◆ g_dwMainMenuItemCount

s32 g_dwMainMenuItemCount
extern

The number of choices in the main menu.

Ghidra address:
USA: 0x80316380
Ghidra address:
Asia: 0x80315E30
Ghidra address:
EUR: 0x80318060
Ghidra address:
JPN: 0x80316c90

◆ g_dwIsPaintMode

s32 g_dwIsPaintMode
extern

Whether the track selection leads to the paint shop.

Ghidra address:
USA: 0x80272070
Ghidra address:
Asia: 0x80271BC0
Ghidra address:
EUR: 0x80274050
Ghidra address:
JPN: 0x80273afc