(One intermediate revision by one other user not shown)
Line 1:
Line 1:
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ContextMenuItemSourceComponent.png
|Image=ContextMenuItemSourceComponent.png
|Name=Context Menu Item Source
|Name=Context Menu Item Source
}}
}}
{{stub}}
The ContextMenuItemSource component is used to add additional items to a context menu. To show up, it needs to be either within a [[ContextMenuSubmenu (Component)|Context Menu Submenu]] or assigned to a [[RootContextMenuItem (Component)|Root Context Menu Item]] as its Item.
The ContextMenuItemSource component is used to add additional items to a [[Context menu|context menu]].
<!--T:2-->
<!--T:2-->
Line 24:
Line 24:
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{stub}}
Attach to a slot, and provide a name and color. The name and color can also be dynamically driven using a [[Component:ValueOptionDescriptionDriver|Value Option Description Driver]] to display what the button does/did.
To show up, it needs to be either within a [[ContextMenuSubmenu (Component)|Context Menu Submenu]] or assigned to a [[RootContextMenuItem (Component)|Root Context Menu Item]] as its Item.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}
This is extremely popular in almost every avatar in Resonite. It is used in context menus to allow the customization of avatar settings like clothes, systems, code, and colors on the run without having to use an inspector. This component is also used in
<!--T:5-->
<!--T:5-->
Line 34:
Line 36:
{{stub}}
{{stub}}
[[Category:ComponentStubs]]
[[Category:Components:Radiant UI:Context Menu{{#translation:}}|Context Menu Item Source]]
[[Category:Components:Radiant UI:Context Menu{{#translation:}}|Context Menu Item Source]]
[[Category:Components{{#translation:}}|Context Menu Item Source]]
[[Category:Components{{#translation:}}|Context Menu Item Source]]
Latest revision as of 17:31, 16 October 2024
Component image
Context Menu Item Source component as seen in the Scene Inspector
This article or section is a stub. You can help the Resonite wiki by expanding it.
The ContextMenuItemSource component is used to add additional items to a context menu.
Attach to a slot, and provide a name and color. The name and color can also be dynamically driven using a Value Option Description Driver to display what the button does/did.
This is extremely popular in almost every avatar in Resonite. It is used in context menus to allow the customization of avatar settings like clothes, systems, code, and colors on the run without having to use an inspector. This component is also used in
Related Issues
This article or section is a stub. You can help the Resonite wiki by expanding it.