API Reference › Menu
IComponentRenderer
InterfaceNamespace: SwiftlyS2.Shared.Menu · Assembly: SwiftlyS2.CS2.dll
public interface IComponentRendererAn optional, renderer-specific way of drawing one component type.
Every component can already draw itself through IMenuComponentRenderContext), so this exists purely to let a renderer produce richer output for a component it knows well. When no component renderer is registered for a pair, the component's own output is used, which is why an unrecognised component is never an error. Registering one of these is also how a plugin teaches a renderer it does not own about a component that renderer has never seen.
View source