swiftlys2/docs/api/ai/
API Reference Menus.OptionsBase

TextMenuOption

Class
Namespace: SwiftlyS2.Core.Menus.OptionsBase · Assembly: SwiftlyS2.CS2.dll
public sealed class TextMenuOption : MenuOptionBase, IMenuOption, IDisposable

Represents a simple text-only menu option without interactive behavior.

View source

Constructors

TextMenuOption(int, int)

Creates an instance of TextMenuOption with dynamic text updating capabilities.

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

When using this constructor, the Text property must be manually set to specify the initial text.

TextMenuOption(string, int, int)

Creates an instance of TextMenuOption with dynamic text updating capabilities.

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