SwiftlyS2

ButtonMenuOption

Class ButtonMenuOption

Namespace: SwiftlyS2.Core.Menus.OptionsBase

Assembly: SwiftlyS2.CS2.dll

Represents a clickable button menu option.

public sealed class ButtonMenuOption : MenuOptionBase, IMenuOption, IDisposable

Inheritance

Implements

Inherited Members

Constructors

ButtonMenuOption(int, int)

Creates an instance of SwiftlyS2.Core.Menus.OptionsBase.ButtonMenuOption with dynamic text updating capabilities.

public ButtonMenuOption(int updateIntervalMs = 120, int pauseIntervalMs = 1000)
Parameters
  • updateIntervalMs int — The interval in milliseconds between text updates. Defaults to 120ms.
  • pauseIntervalMs int — The pause duration in milliseconds before starting the next text update cycle. Defaults to 1000ms.
Remarks

When using this constructor, the SwiftlyS2.Core.Menus.OptionsBase.MenuOptionBase.Text property must be manually set to specify the initial text.

ButtonMenuOption(string, int, int)

Creates an instance of SwiftlyS2.Core.Menus.OptionsBase.ButtonMenuOption with dynamic text updating capabilities.

public ButtonMenuOption(string text, int updateIntervalMs = 120, int pauseIntervalMs = 1000)
Parameters
  • text string — The text content to display.
  • updateIntervalMs int — The interval in milliseconds between text updates. Defaults to 120ms.
  • pauseIntervalMs int — The pause duration in milliseconds before starting the next text update cycle. Defaults to 1000ms.

On this page