Table of Contents

Class PauseMenuOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

UI overlay for the in-game pause menu, allowing access to settings, car reset, and vehicle selection.

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

Constructors

PauseMenuOverlay(IServiceRegistry)

Initializes a new instance of the PauseMenuOverlay class.

public PauseMenuOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The service registry.

Properties

ItemActivated

Occurs when a menu item is activated (e.g., clicked or confirmed).

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

Property Value

Action<int>

Items

Gets or sets the list of items to display in the menu.

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

Property Value

IReadOnlyList<PauseMenuItem>

OverlayVisible

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

public bool OverlayVisible { get; set; }

Property Value

bool

SelectedIndex

Gets or sets the index of the currently selected menu item.

public int SelectedIndex { get; set; }

Property Value

int

StatusText

Gets or sets the status text displayed in the menu.

public string StatusText { get; set; }

Property Value

string

VehicleName

Gets or sets the name of the current vehicle displayed in the menu.

public string VehicleName { get; set; }

Property Value

string

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the pause-menu overlay when it is visible.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride timing data for the current frame.

Initialize()

Initializes the pause-menu overlay and desktop UI.

public override void Initialize()