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
TThe 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
contextMenuContextMenuThe FrooxEngine.ContextMenu being summoned.
Exceptions
- ArgumentNullException
When the
contextMenuis 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