API Reference › Menu.Components
ButtonComponent
ClassNamespace: SwiftlyS2.Shared.Menu.Components · Assembly: SwiftlyS2.CS2.dll
public class ButtonComponent : TextComponent, IMenuComponentImplements IMenuComponent
A selectable line that runs a callback when activated.
Activation goes through the shared pipeline, so Validating can veto it and a slow OnSelect cannot be started twice by the same player.
View source