SwiftlyS2

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 MenuExtraButton

Inheritance

Inherited Members

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

On this page