File tree Expand file tree Collapse file tree
MonkeyLoader.Resonite.Integration/UI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ public abstract class ContextMenuItemsGenerationEvent : AsyncEvent
3636 /// </summary>
3737 public ContextMenu ContextMenu { get ; }
3838
39+ /// <summary>
40+ /// Gets the <see cref="FrooxEngine.InteractionHandler"/> that the <see cref="ContextMenu">ContextMenu</see> may be being summoned for.
41+ /// </summary>
42+ /// <value><see langword="null"/> if the <see cref="ContextMenu">ContextMenu</see> isn't being summoned by an
43+ /// <see cref="FrooxEngine.InteractionHandler"/>; otherwise, the summoning handler.
44+ public InteractionHandler ? InteractionHandler => Summoner as InteractionHandler ;
45+
3946 /// <summary>
4047 /// Gets whether the <see cref="ContextMenu">ContextMenu</see> is open.
4148 /// </summary>
Original file line number Diff line number Diff line change 22using MonkeyLoader . Configuration ;
33using MonkeyLoader . Resonite . Configuration ;
44using MonkeyLoader . Resonite . DataFeeds . Settings ;
5- using System ;
6- using System . Collections . Generic ;
7- using System . Linq ;
8- using System . Text ;
95
106namespace MonkeyLoader . Resonite . UI . ContextMenus
117{
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public sealed class FieldDriveReceiverMenuItemsGenerationEvent<T> : FieldDriveRe
172172 protected override sealed User ? UserCore { get ; }
173173
174174 /// <inheritdoc/>
175- public FieldDriveReceiverMenuItemsGenerationEvent ( ContextMenu contextMenu )
175+ internal FieldDriveReceiverMenuItemsGenerationEvent ( ContextMenu contextMenu )
176176 : base ( contextMenu )
177177 {
178178 Summoner = ContextMenu . CurrentSummoner as FieldDriveReceiver < T >
@@ -239,7 +239,7 @@ public sealed class ReferenceDriveReceiverMenuItemsGenerationEvent<T> : Referenc
239239 protected override sealed User ? UserCore { get ; }
240240
241241 /// <inheritdoc/>
242- public ReferenceDriveReceiverMenuItemsGenerationEvent ( ContextMenu contextMenu )
242+ internal ReferenceDriveReceiverMenuItemsGenerationEvent ( ContextMenu contextMenu )
243243 : base ( contextMenu )
244244 {
245245 Summoner = ContextMenu . CurrentSummoner as ReferenceDriveReceiver < T >
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public sealed class InspectorMemberActionsMenuItemsGenerationEvent : ContextMenu
6565 public User ? User { get ; }
6666
6767 /// <inheritdoc/>
68- public InspectorMemberActionsMenuItemsGenerationEvent ( ContextMenu contextMenu ) : base ( contextMenu )
68+ internal InspectorMemberActionsMenuItemsGenerationEvent ( ContextMenu contextMenu ) : base ( contextMenu )
6969 {
7070 Target = Summoner . Member . Target ;
7171 SkinnedMesh = Summoner . SkinnedMesh ;
You can’t perform that action at this time.
0 commit comments