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

Saved time-attack selection, car setup, and return callbacks. More...

#include <frontend.h>

Static Public Member Functions

static int UpdateItemEnabledState (MenuWidget *pWidget)
 Enable a time attack item after a saved slot has been selected.
static int OnCarSetup (MenuWidget *pWidget)
 Open car setup for the loaded time attack and install its return callback.
static int OnSlotSelected (MenuItemList *pList, int *pnSlot)
 Load a numbered TimeAttack slot, restore its race selections and profile, and synchronise progress.
static int OnBack (MenuActionWidget *pItem)
 Destroy ghost loading, clear its cache, and restore the cached Time Attack menu.

Detailed Description

Saved time-attack selection, car setup, and return callbacks.

Member Function Documentation

◆ UpdateItemEnabledState()

int LoadTimeAttackMenuUI::UpdateItemEnabledState ( MenuWidget * pWidget)
static

Enable a time attack item after a saved slot has been selected.

Otherwise disable the widget and select its fallback sprite and font style.

Parameters
pWidgetA non-null borrowed widget whose enabled state is updated.
Returns
One.
Ghidra address:
BRD3D: 0x100418f0
Ghidra address:
BRGlide: 0x1003ae50

◆ OnCarSetup()

int LoadTimeAttackMenuUI::OnCarSetup ( MenuWidget * pWidget)
static

Open car setup for the loaded time attack and install its return callback.

Parameters
pWidgetThe unused widget forwarded to ShowCarSetupScreen(), possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10046380
Ghidra address:
BRGlide: 0x1003f820

◆ OnSlotSelected()

int LoadTimeAttackMenuUI::OnSlotSelected ( MenuItemList * pList,
int * pnSlot )
static

Load a numbered TimeAttack slot, restore its race selections and profile, and synchronise progress.

Parameters
pListThe unused list pointer, possibly null.
pnSlotA non-null readable slot index, normally 0..99, used in the saved filename.
Returns
Zero when the loaded ghost reports an invalid track; one after restoring selections.
Ghidra address:
BRD3D: 0x10042880
Ghidra address:
BRGlide: 0x1003bde0

◆ OnBack()

int LoadTimeAttackMenuUI::OnBack ( MenuActionWidget * pItem)
static

Destroy ghost loading, clear its cache, and restore the cached Time Attack 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: 0x10044de0
Ghidra address:
BRGlide: 0x1003e330

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