Table of Contents

Class TrackSelectionOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

UI overlay for switching between playable track and world environments.

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

Constructors

TrackSelectionOverlay(IServiceRegistry)

Initializes a new instance of the TrackSelectionOverlay class.

public TrackSelectionOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The service registry.

Properties

CurrentTrackName

Gets or sets the label for the currently active track.

public string CurrentTrackName { get; set; }

Property Value

string

ItemActivated

Occurs when a track is confirmed for loading.

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

Property Value

Action<int>

Items

Gets or sets the track entries available for selection.

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

Property Value

IReadOnlyList<PauseMenuItem>

OverlayVisible

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

public bool OverlayVisible { get; set; }

Property Value

bool

SelectedIndex

Gets or sets the index of the currently selected track entry.

public int SelectedIndex { get; set; }

Property Value

int

StatusText

Gets or sets the current gameplay status text.

public string StatusText { get; set; }

Property Value

string

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the overlay when it is visible.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.

Initialize()

Initializes the desktop UI.

public override void Initialize()