Class SetupUiShellOverlay
- Namespace
- LibreRally.HUD
- Assembly
- LibreRally.dll
UI overlay for the garage setup and vehicle tuning menu.
public sealed class SetupUiShellOverlay : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
SetupUiShellOverlay
- Implements
-
ICollectorHolderIGameSystemBaseIComponentIReferencableIUpdateableIDrawableIContentable
- Inherited Members
Constructors
SetupUiShellOverlay(IServiceRegistry)
Initializes a new instance of the SetupUiShellOverlay class.
public SetupUiShellOverlay(IServiceRegistry services)
Parameters
servicesIServiceRegistryThe service registry.
Properties
ApplyRequested
Occurs when the user requests to apply the current setup changes.
public Action<SetupUiApplyPayload>? ApplyRequested { get; set; }
Property Value
CloseRequested
Occurs when the user requests to close the setup menu.
public Action? CloseRequested { get; set; }
Property Value
OverlayVisible
Gets or sets a value indicating whether the setup UI overlay is visible.
public bool OverlayVisible { get; set; }
Property Value
StatusText
Gets or sets the status text displayed in the setup menu.
public string StatusText { get; set; }
Property Value
VehicleName
Gets or sets the name of the vehicle being tuned.
public string VehicleName { get; set; }
Property Value
Methods
BindVehicle(LoadedVehicle?, VehicleSetupOverrides?, string?)
Binds a vehicle and its setup overrides to the UI.
public void BindVehicle(LoadedVehicle? vehicle, VehicleSetupOverrides? overrides, string? statusText = null)
Parameters
vehicleLoadedVehicleThe loaded vehicle.
overridesVehicleSetupOverridesThe current setup overrides.
statusTextstringOptional status text to display.
Destroy()
Disposes of object resources.
protected override void Destroy()
Draw(GameTime)
Draws the garage setup overlay when it is visible.
public override void Draw(GameTime gameTime)
Parameters
gameTimeGameTimeStride timing data for the current frame.
Initialize()
Initializes the garage setup overlay and creates its root desktop widgets.
public override void Initialize()
Update(GameTime)
Processes setup-overlay navigation input for the current frame.
public override void Update(GameTime gameTime)
Parameters
gameTimeGameTimeStride timing data for the current frame.