Table of Contents

Class VehicleSelectionOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

UI overlay for selecting a vehicle from the catalog.

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

Constructors

VehicleSelectionOverlay(IServiceRegistry)

Initializes a new instance of the VehicleSelectionOverlay class.

public VehicleSelectionOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The service registry.

Properties

ItemActivated

Occurs when a vehicle is activated (e.g., confirmed for loading).

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

Property Value

Action<int>

OverlayVisible

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

public bool OverlayVisible { get; set; }

Property Value

bool

SelectedIndex

Gets or sets the index of the currently selected vehicle.

public int SelectedIndex { get; set; }

Property Value

int

StatusText

Gets or sets the status text displayed in the overlay.

public string StatusText { get; set; }

Property Value

string

Vehicles

Gets or sets the list of vehicles available for selection.

public IReadOnlyList<BeamNgVehicleVariantDescriptor> Vehicles { get; set; }

Property Value

IReadOnlyList<BeamNgVehicleVariantDescriptor>

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the vehicle-selection overlay when it is visible.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.

Initialize()

Initializes the vehicle-selection desktop UI.

public override void Initialize()