API Reference › Menu.Components
SubmenuComponent
ClassNamespace: SwiftlyS2.Shared.Menu.Components · Assembly: SwiftlyS2.CS2.dll
public class SubmenuComponent : TextComponent, IMenuComponentImplements IMenuComponent
A selectable line that opens another menu.
The submenu is produced by a factory rather than held directly, so it can be built lazily from the state of the player opening it. Closing the submenu returns the player here: a menu that has no parent of its own is adopted by this one when it opens.
View source