Class InspectorMemberActionsMenuItemsGenerationEvent
- Namespace
- MonkeyLoader.Resonite.UI.Inspectors
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Represents the event data for the Fallback Locale Generation Event.
public sealed class InspectorMemberActionsMenuItemsGenerationEvent : AsyncEvent
- Inheritance
-
InspectorMemberActionsMenuItemsGenerationEvent
- Inherited Members
Remarks
This event can be used by Monkeys that make use of locale keys to inject programmatically generated keys, if they haven't been defined previously.
Properties
ButtonEventData
Gets the data for the button press that triggered opening the ContextMenu.
public ButtonEventData ButtonEventData { get; }
Property Value
- ButtonEventData
ContextMenu
Gets the FrooxEngine.ContextMenu that was opened.
public ContextMenu ContextMenu { get; }
Property Value
- ContextMenu
Remarks
You need to pass the MemberActions when closing the ContextMenu from your added event handlers.
MemberActions
Gets the FrooxEngine.InspectorMemberActions component that triggered opening the ContextMenu.
public InspectorMemberActions MemberActions { get; }
Property Value
- InspectorMemberActions
Slot
Gets the Target's parent FrooxEngine.Slot.
public Slot? Slot { get; }
Property Value
- Slot
Remarks
This may be null
if Target's parent is a FrooxEngine.UserComponent.
Target
Gets the FrooxEngine.ISyncMember that the ContextMenu was opened for.
public ISyncMember Target { get; }
Property Value
- ISyncMember
User
Gets the Target's Slot's ActiveUser, or its parent FrooxEngine.User if it belongs to a FrooxEngine.UserComponent.
public User? User { get; }
Property Value
- User