Table of Contents

Class DrivingHudOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

UI overlay providing real-time vehicle telemetry, speed, RPM, and other driving metrics.

public sealed class DrivingHudOverlay : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
Inheritance
DrivingHudOverlay
Implements
ICollectorHolder
IGameSystemBase
IComponent
IReferencable
IUpdateable
IDrawable
IContentable
Inherited Members

Constructors

DrivingHudOverlay(IServiceRegistry)

Initializes a new instance of the DrivingHudOverlay class.

public DrivingHudOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The service registry.

Properties

Car

Gets or sets the associated rally car component to display telemetry for.

public RallyCarComponent? Car { get; set; }

Property Value

RallyCarComponent

DebugOverlayVisible

Gets or sets a value indicating whether the debug overlay is visible.

public bool DebugOverlayVisible { get; set; }

Property Value

bool

RaceController

Gets or sets the associated race controller.

public RaceController? RaceController { get; set; }

Property Value

RaceController

StatusText

Gets or sets the status text displayed in the debug overlay.

public string StatusText { get; set; }

Property Value

string

Timer

Gets or sets the associated race timer.

public RaceTimer? Timer { get; set; }

Property Value

RaceTimer

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the driving HUD when the overlay is active.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.

Initialize()

Initializes the driving HUD widgets and desktop root.

public override void Initialize()

Update(GameTime)

Refreshes HUD widget values for the current frame.

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.