coastline 0.0.4
Loading...
Searching...
No Matches
PreRaceInfoUI Class Reference

Championship pre-race records, options, saving, and exit-confirmation callbacks. More...

#include <frontend.h>

Static Public Member Functions

static int UpdateBackButtonText (MenuWidget *pWidget)
 Refresh and measure the Back label according to championship and resume state.
static int OnOptions (MenuWidget *pWidget)
 Open Options and install its return callback to pre-race information.
static int OnSaveSeason (MenuWidget *pWidget)
 Open season saving and install its return callback to pre-race information.
static int OnBackToLoadSeason (MenuActionWidget *pItem)
 Destroy pre-race information, clear its references, and restore cached season loading.
static int OnBackToChampionshipSeason (MenuActionWidget *pItem)
 Destroy pre-race information, clear its references, and restore the cached season menu.
static int OnBack (MenuActionWidget *pItem)
 Activate the previously built pre-race exit-confirmation screen.
static int UpdateBestTimeLabel (MenuWidget *pWidget)
 Draw the season's best race time for the saved round's track, or a placeholder when unloaded.
static int UpdateBestLapLabel (MenuWidget *pWidget)
 Draw the season's best lap time for the saved round's track, or a placeholder when unloaded.

Detailed Description

Championship pre-race records, options, saving, and exit-confirmation callbacks.

Member Function Documentation

◆ UpdateBackButtonText()

int PreRaceInfoUI::UpdateBackButtonText ( MenuWidget * pWidget)
static

Refresh and measure the Back label according to championship and resume state.

Parameters
pWidgetA non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003e840
Ghidra address:
BRGlide: 0x10037e60

◆ OnOptions()

int PreRaceInfoUI::OnOptions ( MenuWidget * pWidget)
static

Open Options and install its return callback to pre-race information.

Parameters
pWidgetThe unused widget forwarded to ShowOptionsMenu(), possibly null.
Returns
One without propagating the screen-opening result.
Ghidra address:
BRD3D: 0x10045780
Ghidra address:
BRGlide: 0x1003ec10

◆ OnSaveSeason()

int PreRaceInfoUI::OnSaveSeason ( MenuWidget * pWidget)
static

Open season saving and install its return callback to pre-race information.

Parameters
pWidgetThe unused widget forwarded to ShowSaveSeasonScreen(), possibly null.
Returns
One without propagating the screen-opening result.
Ghidra address:
BRD3D: 0x100457a0
Ghidra address:
BRGlide: 0x1003ec30

◆ OnBackToLoadSeason()

int PreRaceInfoUI::OnBackToLoadSeason ( MenuActionWidget * pItem)
static

Destroy pre-race information, clear its references, and restore cached season loading.

Parameters
pItemA non-null active-screen widget, invalidated when its panels are destroyed.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x10046dc0
Ghidra address:
BRGlide: 0x10040210

◆ OnBackToChampionshipSeason()

int PreRaceInfoUI::OnBackToChampionshipSeason ( MenuActionWidget * pItem)
static

Destroy pre-race information, clear its references, and restore the cached season menu.

Parameters
pItemA non-null active-screen widget, invalidated when its panels are destroyed.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x10046d70
Ghidra address:
BRGlide: 0x100401c0

◆ OnBack()

int PreRaceInfoUI::OnBack ( MenuActionWidget * pItem)
static

Activate the previously built pre-race exit-confirmation screen.

Parameters
pItemThe unused widget pointer, possibly null.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x10046f50
Ghidra address:
BRGlide: 0x100403a0

◆ UpdateBestTimeLabel()

int PreRaceInfoUI::UpdateBestTimeLabel ( MenuWidget * pWidget)
static

Draw the season's best race time for the saved round's track, or a placeholder when unloaded.

Parameters
pWidgetA non-null borrowed label widget with primary text storage.
Returns
One after formatting and drawing the time.
Ghidra address:
BRD3D: 0x10040c00
Ghidra address:
BRGlide: 0x1003a140

◆ UpdateBestLapLabel()

int PreRaceInfoUI::UpdateBestLapLabel ( MenuWidget * pWidget)
static

Draw the season's best lap time for the saved round's track, or a placeholder when unloaded.

Parameters
pWidgetA non-null borrowed label widget with primary text storage.
Returns
One after formatting and drawing the time.
Ghidra address:
BRD3D: 0x10040d70
Ghidra address:
BRGlide: 0x1003a2b0

The documentation for this class was generated from the following file: