swiftlys2/docs/api/releases/features/ai/
API Reference › Menus

MenuOptionScrollStyle

Enum
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
[Obsolete("The classic menu system is deprecated and will be removed in future versions. Use Core.Menu (IMenuService) instead.")]
public enum MenuOptionScrollStyle

Defines how the menu scrolls when navigating between options.

View source
CenterFixed

The selection indicator always stays in the center position. Menu options scroll circularly around it, wrapping from bottom to top (e.g., ...7, 8, 1, 2, 3...).

1
LinearScroll

The selection indicator moves up and down through the visible menu area. The menu content stays fixed until the indicator reaches the edge.

0
WaitingCenter

The selection indicator moves until it reaches the center, then stays there. At the top and bottom edges, the indicator can move away from center.

2