SwiftlyS2

MenuOptionClickEventArgs

Class MenuOptionClickEventArgs

Namespace: SwiftlyS2.Shared.Menus

Assembly: SwiftlyS2.CS2.dll

Provides event data for menu option click events.

public sealed class MenuOptionClickEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

NOTE: When handling click events, the sender parameter must be passed as IMenuOption.

Properties

CloseMenu

Gets a value indicating whether the menu should be closed after handling the click.

public bool CloseMenu { get; }
Property Value

Player

The player who clicked the option.

public required IPlayer Player { get; init; }
Property Value

On this page