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
-
ICollectorHolderIGameSystemBaseIComponentIReferencableIUpdateableIDrawableIContentable
- Inherited Members
Constructors
DrivingHudOverlay(IServiceRegistry)
Initializes a new instance of the DrivingHudOverlay class.
public DrivingHudOverlay(IServiceRegistry services)
Parameters
servicesIServiceRegistryThe service registry.
Properties
Car
Gets or sets the associated rally car component to display telemetry for.
public RallyCarComponent? Car { get; set; }
Property Value
DebugOverlayVisible
Gets or sets a value indicating whether the debug overlay is visible.
public bool DebugOverlayVisible { get; set; }
Property Value
RaceController
Gets or sets the associated race controller.
public RaceController? RaceController { get; set; }
Property Value
StatusText
Gets or sets the status text displayed in the debug overlay.
public string StatusText { get; set; }
Property Value
Timer
Gets or sets the associated race timer.
public RaceTimer? Timer { get; set; }
Property Value
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
gameTimeGameTimeStride 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
gameTimeGameTimeStride timing data for the current frame.