Table of Contents

Class TelemetryOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

UI overlay for in-game telemetry control.

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

Constructors

TelemetryOverlay(IServiceRegistry)

Initializes a new instance of the TelemetryOverlay class.

public TelemetryOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The Stride service registry.

Properties

ItemActivated

Raised when a telemetry item is activated.

public Action<int>? ItemActivated { get; set; }

Property Value

Action<int>

Items

Gets or sets the telemetry menu items to display.

public IReadOnlyList<PauseMenuItem> Items { get; set; }

Property Value

IReadOnlyList<PauseMenuItem>

OutGaugeSummary

Gets or sets the OutGauge telemetry summary.

public string OutGaugeSummary { get; set; }

Property Value

string

OutSimSummary

Gets or sets the OutSim telemetry summary.

public string OutSimSummary { get; set; }

Property Value

string

OverlayVisible

Gets or sets a value indicating whether this overlay is visible.

public bool OverlayVisible { get; set; }

Property Value

bool

SelectedIndex

Gets or sets the selected telemetry item index.

public int SelectedIndex { get; set; }

Property Value

int

StatusText

Gets or sets the status text shown at the bottom of the overlay.

public string StatusText { get; set; }

Property Value

string

VehicleName

Gets or sets the vehicle name shown in the header.

public string VehicleName { get; set; }

Property Value

string

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the telemetry overlay when it is visible.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.

Initialize()

Initializes the telemetry overlay desktop UI.

public override void Initialize()