No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
|AllowDrag|Bool| Whether or not the user can drag onto the button from the center of the context menu to click it. | |AllowDrag|Bool| Whether or not the user can drag onto the button from the center of the context menu to click it. | ||
|CloseMenuOnPress|Bool| Whether or not the context menu should be closed after the item is pressed. | |CloseMenuOnPress|Bool| Whether or not the context menu should be closed after the item is pressed. | ||
|Pressed|WorldDelegate| See [[ProtoFlux:Button_Events]] | |Pressed|WorldDelegate| See [[ProtoFlux:Button_Events|ButtonEvents]] | ||
|Pressing|WorldDelegate| See [[ProtoFlux:Button_Events]] | |Pressing|WorldDelegate| See [[ProtoFlux:Button_Events|ButtonEvents]] | ||
|Released|WorldDelegate| See [[ProtoFlux:Button_Events]] | |Released|WorldDelegate| See [[ProtoFlux:Button_Events|ButtonEvents]] | ||
}} | }} | ||
Revision as of 18:44, 2 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
The ContextMenuItemSource component is used to add additional items to a context menu. To show up, it needs to be either within a Context Menu Submenu or assigned to a Root Context Menu Item as its Item.
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. |
Label
|
String | The text label next to the item. |
Color
|
Color | The background/border color of the item. |
Sprite
|
IAssetProvider<Sprite> | The icon that is displayed on the item. |
ButtonEnabled
|
Bool | Whether or not the button is active. If false, it will be greyed out and unclickable. |
AllowDrag
|
Bool | Whether or not the user can drag onto the button from the center of the context menu to click it. |
CloseMenuOnPress
|
Bool | Whether or not the context menu should be closed after the item is pressed. |
Pressed
|
WorldDelegate | See ButtonEvents |
Pressing
|
WorldDelegate | See ButtonEvents |
Released
|
WorldDelegate | See ButtonEvents |
Usage
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Related Issues
This article or section is a Stub. You can help the Resonite Wiki by expanding it.