swiftlys2/docs/api/ai/
API Reference Menus

MenuOptionValueChangedEventArgs`1

Class
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
public sealed class MenuOptionValueChangedEventArgs<T> : EventArgs
Inherits object, EventArgs

Event arguments for when a menu option's value changes.

View source

Properties

NewValue

Gets the new value after the change.

public required T NewValue { get; init; }
Property Value
T

OldValue

Gets the previous value before the change.

public required T OldValue { get; init; }
Property Value
T

Option

Gets the menu option whose value changed.

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

Player

Gets the player who triggered the value change.

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