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

Configuration, image, and label callbacks for PC graphics and force-feedback options. More...

#include <frontend.h>

Static Public Member Functions

static int UpdateForceFeedbackImage (MenuWidget *pWidget)
 Draw the force feedback choice, displaying off when the device lacks support.
static int OnToggleForceFeedback (MenuWidget *pWidget)
 Cycle the force-feedback choice using mouse edges and update its config value.
static int OnToggleSkidMarks (MenuWidget *pWidget)
 Cycle the skid-mark choice using mouse edges and update its config value.
static int OnToggleCarShadow (MenuWidget *pWidget)
 Cycle the car-shadow choice using mouse edges and update its config value.
static int OnToggleSpecularLighting (MenuWidget *pWidget)
 Cycle the specular-lighting choice using mouse edges and update its config value.
static int UpdateCarShadowImage (MenuWidget *pWidget)
 Select the sprite for the current car-shadow choice.
static int UpdateSpecularLightingImage (MenuWidget *pWidget)
 Select the sprite for the current specular-lighting choice.
static int UpdateSkidMarksImage (MenuWidget *pWidget)
 Select the sprite for the current skid-mark choice.
static int UpdateCarShadowLabel (MenuWidget *pWidget)
 Refresh and measure the car-shadow label, then process its text-input update.
static int UpdateSkidMarksLabel (MenuWidget *pWidget)
 Refresh and measure the skid-mark label, then process its text-input update.
static int UpdateSpecularLightingLabel (MenuWidget *pWidget)
 Refresh and measure the specular-lighting label, then process its text-input update.
static int UpdateForceFeedbackLabel (MenuWidget *pWidget)
 Refresh the force-feedback label, displaying Off when feedback is unavailable.
static int OnBack (MenuActionWidget *pItem)
 Destroy the active game-options screen, clear its cache, and return to cached Options.

Detailed Description

Configuration, image, and label callbacks for PC graphics and force-feedback options.

Member Function Documentation

◆ UpdateForceFeedbackImage()

int GameOptionsUI::UpdateForceFeedbackImage ( MenuWidget * pWidget)
static

Draw the force feedback choice, displaying off when the device lacks support.

Parameters
pWidgetThe non-null borrowed force-feedback image widget.
Returns
One.
Ghidra address:
BRD3D: 0x10040950
Ghidra address:
BRGlide: 0x10039e90

◆ OnToggleForceFeedback()

int GameOptionsUI::OnToggleForceFeedback ( MenuWidget * pWidget)
static

Cycle the force-feedback choice using mouse edges and update its config value.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10043590
Ghidra address:
BRGlide: 0x1003cae0

◆ OnToggleSkidMarks()

int GameOptionsUI::OnToggleSkidMarks ( MenuWidget * pWidget)
static

Cycle the skid-mark choice using mouse edges and update its config value.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x100435f0
Ghidra address:
BRGlide: 0x1003cb40

◆ OnToggleCarShadow()

int GameOptionsUI::OnToggleCarShadow ( MenuWidget * pWidget)
static

Cycle the car-shadow choice using mouse edges and update its config value.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10043650
Ghidra address:
BRGlide: 0x1003cba0

◆ OnToggleSpecularLighting()

int GameOptionsUI::OnToggleSpecularLighting ( MenuWidget * pWidget)
static

Cycle the specular-lighting choice using mouse edges and update its config value.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x100436b0
Ghidra address:
BRGlide: 0x1003cc00

◆ UpdateCarShadowImage()

int GameOptionsUI::UpdateCarShadowImage ( MenuWidget * pWidget)
static

Select the sprite for the current car-shadow choice.

Parameters
pWidgetThe non-null borrowed car-shadow image widget.
Returns
One.
Ghidra address:
BRD3D: 0x100409b0
Ghidra address:
BRGlide: 0x10039ef0

◆ UpdateSpecularLightingImage()

int GameOptionsUI::UpdateSpecularLightingImage ( MenuWidget * pWidget)
static

Select the sprite for the current specular-lighting choice.

Parameters
pWidgetThe non-null borrowed specular-lighting image widget.
Returns
One.
Ghidra address:
BRD3D: 0x100409d0
Ghidra address:
BRGlide: 0x10039f10

◆ UpdateSkidMarksImage()

int GameOptionsUI::UpdateSkidMarksImage ( MenuWidget * pWidget)
static

Select the sprite for the current skid-mark choice.

Parameters
pWidgetThe non-null borrowed skid-mark image widget.
Returns
One.
Ghidra address:
BRD3D: 0x10040990
Ghidra address:
BRGlide: 0x10039ed0

◆ UpdateCarShadowLabel()

int GameOptionsUI::UpdateCarShadowLabel ( MenuWidget * pWidget)
static

Refresh and measure the car-shadow label, then process its text-input update.

Parameters
pWidgetThe non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003fda0
Ghidra address:
BRGlide: 0x100392e0

◆ UpdateSkidMarksLabel()

int GameOptionsUI::UpdateSkidMarksLabel ( MenuWidget * pWidget)
static

Refresh and measure the skid-mark label, then process its text-input update.

Parameters
pWidgetThe non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003fd30
Ghidra address:
BRGlide: 0x10039270

◆ UpdateSpecularLightingLabel()

int GameOptionsUI::UpdateSpecularLightingLabel ( MenuWidget * pWidget)
static

Refresh and measure the specular-lighting label, then process its text-input update.

Parameters
pWidgetThe non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003fe10
Ghidra address:
BRGlide: 0x10039350

◆ UpdateForceFeedbackLabel()

int GameOptionsUI::UpdateForceFeedbackLabel ( MenuWidget * pWidget)
static

Refresh the force-feedback label, displaying Off when feedback is unavailable.

The primary font is measured and its text-input update is processed.

Parameters
pWidgetThe non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003fcb0
Ghidra address:
BRGlide: 0x100391f0

◆ OnBack()

int GameOptionsUI::OnBack ( MenuActionWidget * pItem)
static

Destroy the active game-options screen, clear its cache, and return to cached Options.

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

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