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

MenuSelectionNode

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

The selection marker slot for a body entry.

Emitting a marker slot rather than a literal arrow keeps the choice of indicator with the renderer, so a text renderer and a graphical renderer can indicate selection differently without any component changing.

View source

Constructors

MenuSelectionNode(bool, int)

The selection marker slot for a body entry.

public MenuSelectionNode(bool Focused, int Number = 0)
Parameters
  • FocusedboolWhether the entry this marker belongs to currently has focus.
  • NumberintoptionalThe number a player types to pick this entry under Chat, or zero when the entry is not picked by number.

Emitting a marker slot rather than a literal arrow keeps the choice of indicator with the renderer, so a text renderer and a graphical renderer can indicate selection differently without any component changing.

Properties

Focused

Whether the entry this marker belongs to currently has focus.

public bool Focused { get; init; }
Property Value

Number

The number a player types to pick this entry under Chat, or zero when the entry is not picked by number.

public int Number { get; init; }
Property Value