|
coastline 0.0.4
|
Callbacks for car, handling, equipment, and navigation choices in the PC car-setup menus. More...
#include <frontend.h>
Static Public Member Functions | |
| static int | OnAcceptAndSave (MenuActionWidget *pWidget) |
| Stop the setup screen, back up choices, save config, and attempt an automatic season save. | |
| static int | UpdateSteeringIndicatorPos (MenuWidget *pWidget) |
| Position the steering indicator for the selected handling choice. | |
| static int | OnCycleHandlingType (MenuWidget *pWidget) |
| Cycle the handling menu index through 0..7 using mouse edges and update the chosen handling. | |
| static int | OnCycleTireType (MenuWidget *pWidget) |
| Cycle the tyre menu index through 0..2 using mouse edges and resolve the tyre type. | |
| static int | OnCycleSuspensionType (MenuWidget *pWidget) |
| Cycle the suspension menu index through 0..2 using mouse edges and resolve its type. | |
| static int | OnCycleTransmissionType (MenuWidget *pWidget) |
| Cycle the transmission menu index through 0..1 using mouse edges and resolve its type. | |
| static int | UpdateTransmissionImage (MenuWidget *pWidget) |
| Select the sprite for the current transmission choice. | |
| static int | UpdateTiresImage (MenuWidget *pWidget) |
| Select the sprite for the current tyre choice. | |
| static int | UpdateShocksImage (MenuWidget *pWidget) |
| Select the sprite for the current suspension choice. | |
| static int | OnCycleCar (MenuActionWidget *pItem) |
| Cycle selectable cars using mouse edges and resolve the chosen car identifier. | |
| static int | UpdateCarNameLabel (MenuWidget *pWidget) |
| Refresh the car-name label, or the placeholder before a ghost selection is loaded, and process active text editing. | |
| static int | UpdateTransmissionLabel (MenuWidget *pWidget) |
| Refresh the primary transmission label and process active text editing. | |
| static int | UpdateShocksLabel (MenuWidget *pWidget) |
| Refresh the primary label for the current suspension choice and process active text editing. | |
| static int | UpdateTiresLabel (MenuWidget *pWidget) |
| Refresh the primary label for the current tyre choice and process active text editing. | |
| static int | UpdateCarImage (MenuWidget *pWidget) |
| Select the current car sprite unless the ghost-load screen has no loaded selection. | |
| static int | OnBackToRaceSetup (MenuActionWidget *pItem) |
| Destroy the active setup screen, clear its cache, and restore the cached main menu. | |
| static int | OnOpenOptions (MenuActionWidget *pItem) |
| Open Options and install its return callback for car setup. | |
| static int | OnOpenSaveSeason (MenuActionWidget *pItem) |
| Open season saving and install its return callback for car setup. | |
| static int | OnBackToSeasonProgressInfo (MenuActionWidget *pItem) |
| Destroy the active setup screen, clear setup references, and restore season progress. | |
| static int | OnBackToTimeAttack (MenuActionWidget *pItem) |
| Destroy the active setup screen, clear setup references, and restore cached Time Attack. | |
Callbacks for car, handling, equipment, and navigation choices in the PC car-setup menus.
|
static |
Stop the setup screen, back up choices, save config, and attempt an automatic season save.
Championship mode also selects three laps.
| pWidget | A non-null borrowed widget of the setup screen. |
|
static |
Position the steering indicator for the selected handling choice.
| pWidget | The non-null borrowed steering-indicator widget to reposition. |
|
static |
Cycle the handling menu index through 0..7 using mouse edges and update the chosen handling.
| pWidget | The unused widget pointer, possibly null. |
|
static |
Cycle the tyre menu index through 0..2 using mouse edges and resolve the tyre type.
| pWidget | The unused widget pointer, possibly null. |
|
static |
Cycle the suspension menu index through 0..2 using mouse edges and resolve its type.
| pWidget | The unused widget pointer, possibly null. |
|
static |
Cycle the transmission menu index through 0..1 using mouse edges and resolve its type.
| pWidget | The unused widget pointer, possibly null. |
|
static |
Select the sprite for the current transmission choice.
| pWidget | The non-null borrowed transmission-image widget. |
|
static |
Select the sprite for the current tyre choice.
| pWidget | The non-null borrowed tyre-image widget. |
|
static |
Select the sprite for the current suspension choice.
| pWidget | The non-null borrowed suspension-image widget. |
|
static |
Cycle selectable cars using mouse edges and resolve the chosen car identifier.
An active DirectPlay interface also receives a selection notice.
| pItem | The unused widget pointer, possibly null. |
|
static |
Refresh the car-name label, or the placeholder before a ghost selection is loaded, and process active text editing.
| pWidget | The non-null borrowed label widget with writable font slot zero. |
|
static |
Refresh the primary transmission label and process active text editing.
| pWidget | The non-null borrowed label widget with writable font slot zero. |
|
static |
Refresh the primary label for the current suspension choice and process active text editing.
| pWidget | The non-null borrowed label widget with writable font slot zero. |
|
static |
Refresh the primary label for the current tyre choice and process active text editing.
| pWidget | The non-null borrowed label widget with writable font slot zero. |
|
static |
Select the current car sprite unless the ghost-load screen has no loaded selection.
| pWidget | The non-null borrowed car-image widget. |
|
static |
Destroy the active setup screen, clear its cache, and restore the cached main menu.
| pItem | A non-null active-screen widget, invalidated when its panels are destroyed. |
|
static |
Open Options and install its return callback for car setup.
| pItem | The unused widget pointer forwarded to ShowOptionsMenu(), possibly null. |
|
static |
Open season saving and install its return callback for car setup.
| pItem | The unused widget pointer forwarded to ShowSaveSeasonScreen(), possibly null. |
|
static |
Destroy the active setup screen, clear setup references, and restore season progress.
| pItem | A non-null active-screen widget, invalidated when its panels are destroyed. |
|
static |
Destroy the active setup screen, clear setup references, and restore cached Time Attack.
| pItem | A non-null active-screen widget, invalidated when its panels are destroyed. |