swiftlys2/docs/api/ai/
API Reference Menus

MenuOptionFormattingEventArgs

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

Provides event data for menu option HTML formatting events.

View source

Properties

CustomText

Gets or sets custom text to use instead of the default text during HTML assembly.

public string? CustomText { get; set; }
Property Value

Option

The menu option being formatted.

public required IMenuOption Option { get; init; }
Property Value

Player

The player for whom the option is being formatted.

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