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

Championship save loading, continuation, and return callbacks. More...

#include <frontend.h>

Static Public Member Functions

static int UpdateContinueButtonState (MenuWidget *pWidget)
 Enable continuing after a championship slot has been opened.
static int OnLoadAutoSave (MenuWidget *pWidget)
 Attempt to load the automatic season save and open pre-race information in championship mode.
static int OnContinueSeason (MenuActionWidget *pItem)
 Open pre-race information for the loaded season and install the return callback to loading.
static int OnBack (MenuActionWidget *pItem)
 Destroy season loading, clear its selection and labels, and restore the cached season menu.

Detailed Description

Championship save loading, continuation, and return callbacks.

Member Function Documentation

◆ UpdateContinueButtonState()

int LoadSeasonUI::UpdateContinueButtonState ( MenuWidget * pWidget)
static

Enable continuing after a championship slot has been opened.

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

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

◆ OnLoadAutoSave()

int LoadSeasonUI::OnLoadAutoSave ( MenuWidget * pWidget)
static

Attempt to load the automatic season save and open pre-race information in championship mode.

Install the return callback to the season-loading menu.

Parameters
pWidgetThe unused widget forwarded to pre-race setup, possibly null.
Returns
One without reporting the automatic-load result.
Ghidra address:
BRD3D: 0x100450c0
Ghidra address:
BRGlide: 0x1003e610

◆ OnContinueSeason()

int LoadSeasonUI::OnContinueSeason ( MenuActionWidget * pItem)
static

Open pre-race information for the loaded season and install the return callback to loading.

Parameters
pItemThe unused widget forwarded to pre-race setup, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10045090
Ghidra address:
BRGlide: 0x1003e5e0

◆ OnBack()

int LoadSeasonUI::OnBack ( MenuActionWidget * pItem)
static

Destroy season loading, clear its selection and labels, 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: 0x10046e10
Ghidra address:
BRGlide: 0x10040260

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