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