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
-
ICollectorHolderIGameSystemBaseIComponentIReferencableIUpdateableIDrawableIContentable
- Inherited Members
Constructors
VehicleSelectionOverlay(IServiceRegistry)
Initializes a new instance of the VehicleSelectionOverlay class.
public VehicleSelectionOverlay(IServiceRegistry services)
Parameters
servicesIServiceRegistryThe service registry.
Properties
ItemActivated
Occurs when a vehicle is activated (e.g., confirmed for loading).
public Action<int>? ItemActivated { get; set; }
Property Value
OverlayVisible
Gets or sets a value indicating whether the vehicle selection overlay is visible.
public bool OverlayVisible { get; set; }
Property Value
SelectedIndex
Gets or sets the index of the currently selected vehicle.
public int SelectedIndex { get; set; }
Property Value
StatusText
Gets or sets the status text displayed in the overlay.
public string StatusText { get; set; }
Property Value
Vehicles
Gets or sets the list of vehicles available for selection.
public IReadOnlyList<BeamNgVehicleVariantDescriptor> Vehicles { get; set; }
Property Value
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
gameTimeGameTimeStride timing data for the current frame.
Initialize()
Initializes the vehicle-selection desktop UI.
public override void Initialize()