Table of Contents

Class ContextMenuItemsGenerationEvent<T>

Namespace
MonkeyLoader.Resonite.UI.ContextMenus
Assembly
MonkeyLoader.Resonite.Integration.dll

Represents a generic (base) class for all events that generate a FrooxEngine.ContextMenu.

[SubscribableBaseEvent]
public class ContextMenuItemsGenerationEvent<T> : ContextMenuItemsGenerationEvent where T : class, IWorldElement

Type Parameters

T

The type of the Summoner.

Inheritance
ContextMenuItemsGenerationEvent<T>
Derived
Inherited Members

Constructors

ContextMenuItemsGenerationEvent(ContextMenu)

Creates a new FrooxEngine.ContextMenu items generation event with the given contextMenu and its active FrooxEngine.User.

public ContextMenuItemsGenerationEvent(ContextMenu contextMenu)

Parameters

contextMenu ContextMenu

The FrooxEngine.ContextMenu being summoned.

Exceptions

ArgumentNullException

When the contextMenu is null.

ArgumentException

When the contextMenu's active FrooxEngine.User is null.

Properties

Summoner

Gets the T that the ContextMenu is being summoned by.

public T Summoner { get; }

Property Value

T

SummonerCore

Internal implementation for Summoner.

protected override sealed IWorldElement SummonerCore { get; }

Property Value

IWorldElement