API Reference › Menu
IMenuComponent
InterfaceNamespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public interface IMenuComponentA reusable unit a menu is built from.
A component owns exactly two things: how it draws, and how it reacts to actions. It owns no per-player state, which is what makes a single instance safe to place in several menus and to show to several players at once. Anything that varies per player belongs in IMenuSession state. Prefer deriving from MenuComponentBase rather than implementing this directly.
View source