Component:RootContextMenuItem: Difference between revisions

From Resonite Wiki
Zandario (talk | contribs)
mNo edit summary
 
add last info
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|Name=Root Context Menu Item
|Name=Root Context Menu Item
}}
}}
Root context menu item is a component that makes a new context menu item appear for the active user for when they open their context menu.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|OnlyForSide|Nullable`1|TypeString0=Nullable<Chirality>| When set, the item will only be inserted when the context menu is opened on the specified hand.
|OnlyForSide|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Chirality|Chirality]]&gt;'''|TypeAdv0=true| When set, the item will only be inserted when the context menu is opened on the specified hand.
|ExcludeOnTools|Bool| Determines whether or not the item shows up when opening the context menu while having a tool equipped on the same hand.
|ExcludeOnTools|Bool| Determines whether or not the item shows up when opening the context menu while having a tool equipped on the same hand.
|ExcludePrimaryHand|Bool| Makes the item not show up when the context menu is open on the user's primary hand.
|ExcludePrimaryHand|Bool| Makes the item not show up when the context menu is open on the user's primary hand.
|ExcludeSecondaryHand|Bool| Makes the item not show up when the context menu is open on the user's secondary hand.
|ExcludeSecondaryHand|Bool| Makes the item not show up when the context menu is open on the user's secondary hand.
|Item|ContextMenuItemSource| The [[ContextMenuItemSource (Component)|ContextMenuItemSource]] that will be inserted into the context menu.
|Item|'''[[Component:ContextMenuItemSource|ContextMenuItemSource]]'''|TypeAdv4=true| The [[ContextMenuItemSource (Component)|ContextMenuItemSource]] that will be inserted into the context menu.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{stub}}


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Issues ==
== Related Issues ==
{{stub}}


<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
{{stub}}
[[Component:ContextMenuItemSource|ContextMenuItemSource]]


[[Category:ComponentStubs]]
[[Category:Components:Radiant UI:Context Menu{{#translation:}}|Root Context Menu Item]]
[[Category:Components|Root Context Menu Item]]
[[Category:Components{{#translation:}}|Root Context Menu Item]]
[[Category:Components:Radiant UI:Context Menu|Root Context Menu Item]]

Latest revision as of 00:22, 25 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Root Context Menu Item component as seen in the Scene Inspector

Root context menu item is a component that makes a new context menu item appear for the active user for when they open their context menu.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
OnlyForSide Nullable`1<Chirality> When set, the item will only be inserted when the context menu is opened on the specified hand.
ExcludeOnTools Bool Determines whether or not the item shows up when opening the context menu while having a tool equipped on the same hand.
ExcludePrimaryHand Bool Makes the item not show up when the context menu is open on the user's primary hand.
ExcludeSecondaryHand Bool Makes the item not show up when the context menu is open on the user's secondary hand.
Item ContextMenuItemSource The ContextMenuItemSource that will be inserted into the context menu.

Usage

Examples

Related Issues

Related Components

ContextMenuItemSource