MenuExtraButton
Class MenuExtraButton
Namespace: SwiftlyS2.Shared.Menus
Assembly: SwiftlyS2.CS2.dll
Represents an extra button in the menu that executes a custom action when pressed.
public sealed class MenuExtraButtonInheritance
Inherited Members
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Properties
Action
The action to execute when this button is pressed.
public required Action<IPlayer, IMenuAPI> Action { get; init; }Property Value
KeyBind
The key binding for this extra button.
public required KeyBind KeyBind { get; init; }Property Value
Label
The label to display for this button in the menu footer.
public required string Label { get; init; }Property Value