swiftlys2/docs/api/ai/
API Reference › Menu

MenuTextNode

Class
Namespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public sealed record MenuTextNode : MenuNode, IEquatable<MenuNode>, IEquatable<MenuTextNode>

A run of styled text.

View source

Constructors

MenuTextNode(string, MenuTextStyle)

A run of styled text.

public MenuTextNode(string Text, MenuTextStyle Style)
Parameters

MenuTextNode(string)

Creates a text node using Default.

public MenuTextNode(string text)
Parameters
  • textstringThe text to display.

Properties

Style

Presentation hints for the text.

public MenuTextStyle Style { get; init; }
Property Value

Text

The text to display.

public string Text { get; init; }
Property Value