swiftlys2/docs/api/ai/
API Reference Menus

MenuOptionClickEventArgs

Class
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
public sealed class MenuOptionClickEventArgs : EventArgs
Inherits object, EventArgs

Provides event data for menu option click events.

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

View source

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