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
-
ICollectorHolderIGameSystemBaseIComponentIReferencableIUpdateableIDrawableIContentable
- Inherited Members
Constructors
TrackSelectionOverlay(IServiceRegistry)
Initializes a new instance of the TrackSelectionOverlay class.
public TrackSelectionOverlay(IServiceRegistry services)
Parameters
servicesIServiceRegistryThe service registry.
Properties
CurrentTrackName
Gets or sets the label for the currently active track.
public string CurrentTrackName { get; set; }
Property Value
ItemActivated
Occurs when a track is confirmed for loading.
public Action<int>? ItemActivated { get; set; }
Property Value
Items
Gets or sets the track entries available for selection.
public IReadOnlyList<PauseMenuItem> Items { get; set; }
Property Value
OverlayVisible
Gets or sets a value indicating whether the overlay is visible.
public bool OverlayVisible { get; set; }
Property Value
SelectedIndex
Gets or sets the index of the currently selected track entry.
public int SelectedIndex { get; set; }
Property Value
StatusText
Gets or sets the current gameplay status text.
public string StatusText { get; set; }
Property Value
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
gameTimeGameTimeStride timing data for the current frame.
Initialize()
Initializes the desktop UI.
public override void Initialize()