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
-
ICollectorHolderIGameSystemBaseIComponentIReferencableIUpdateableIDrawableIContentable
- Inherited Members
Constructors
TelemetryOverlay(IServiceRegistry)
Initializes a new instance of the TelemetryOverlay class.
public TelemetryOverlay(IServiceRegistry services)
Parameters
servicesIServiceRegistryThe Stride service registry.
Properties
ItemActivated
Raised when a telemetry item is activated.
public Action<int>? ItemActivated { get; set; }
Property Value
Items
Gets or sets the telemetry menu items to display.
public IReadOnlyList<PauseMenuItem> Items { get; set; }
Property Value
OutGaugeSummary
Gets or sets the OutGauge telemetry summary.
public string OutGaugeSummary { get; set; }
Property Value
OutSimSummary
Gets or sets the OutSim telemetry summary.
public string OutSimSummary { get; set; }
Property Value
OverlayVisible
Gets or sets a value indicating whether this overlay is visible.
public bool OverlayVisible { get; set; }
Property Value
SelectedIndex
Gets or sets the selected telemetry item index.
public int SelectedIndex { get; set; }
Property Value
StatusText
Gets or sets the status text shown at the bottom of the overlay.
public string StatusText { get; set; }
Property Value
VehicleName
Gets or sets the vehicle name shown in the header.
public string VehicleName { get; set; }
Property Value
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
gameTimeGameTimeStride timing data for the current frame.
Initialize()
Initializes the telemetry overlay desktop UI.
public override void Initialize()