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

MenuActions

Class
Namespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public static class MenuActions
Inherits object

The built-in traversal actions that every menu inherits automatically.

These live in the reserved CoreScope scope. A menu may rebind them by declaring an action with the same Name in its own scope.

View source

Fields

Close

Closes the menu, returning to its parent when it has one.

public static readonly MenuActionId Close
Field Value

CoreScope

The reserved configuration scope holding the automatic traversal binds.

public const string CoreScope = "core.menu"
Field Value

NavigateDown

Moves the selection to the next focusable component.

public static readonly MenuActionId NavigateDown
Field Value

NavigateLeft

Steps the focused component's value towards its start.

public static readonly MenuActionId NavigateLeft
Field Value

Has no effect of its own. Only components that take it over in MenuActionContext) — sliders and selectors — react to it.

NavigateRight

Steps the focused component's value towards its end.

public static readonly MenuActionId NavigateRight
Field Value

Has no effect of its own, exactly as NavigateLeft.

NavigateUp

Moves the selection to the previous focusable component.

public static readonly MenuActionId NavigateUp
Field Value

Select

Activates the focused component.

public static readonly MenuActionId Select
Field Value