Button Events: Difference between revisions
Renamed Handler -> Receiver |
Table formatting |
||
Line 38: | Line 38: | ||
! Component !! Hover Events !! Press Events !! Notes | ! Component !! Hover Events !! Press Events !! Notes | ||
|- | |- | ||
| [[Button (Component)]] || Yes || Yes || | | [[Button (Component)|Button]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonHoverEventRelay (Component)]] || Yes || No || Relays button hover events to a specifiable slot instead of its own. | | [[ButtonHoverEventRelay (Component)|ButtonHoverEventRelay]] || {{Yes}} || {{No}} || Relays button hover events to a specifiable slot instead of its own. | ||
|- | |- | ||
| [[ButtonPressEventRelay (Component)]] || No || Yes || Relays button press events to a specifiable slot instead of its own. | | [[ButtonPressEventRelay (Component)|ButtonPressEventRelay]] || {{No}} || {{Yes}} || Relays button press events to a specifiable slot instead of its own. | ||
|- | |- | ||
| [[LegacyButton (Component)]] || No || Yes || Only supports '''Pressed''' and '''Released''', not '''Pressing'''. | | [[LegacyButton (Component)|LegacyButton]] || {{No}} || {{Yes}} || Only supports '''Pressed''' and '''Released''', not '''Pressing'''. | ||
|- | |- | ||
| [[PhysicalButton (Component)]] || No || Yes || | | [[PhysicalButton (Component)|PhysicalButton]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[TouchButton (Component)]] || No || Yes || | | [[TouchButton (Component)|TouchButton]] || {{No}} || {{Yes}} || | ||
|} | |} | ||
Line 56: | Line 56: | ||
! Component !! Hover Events !! Press Events !! Notes | ! Component !! Hover Events !! Press Events !! Notes | ||
|- | |- | ||
| [[AudioStreamSpawner (Component)]] || No || Yes || | | [[AudioStreamSpawner (Component)|AudioStreamSpawner]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[AvatarCreatorSpawner (Component)]] || No || Yes || | | [[AvatarCreatorSpawner (Component)|AvatarCreatorSpawner]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonActionTrigger (Component)]] || No || Yes || | | [[ButtonActionTrigger (Component)|ButtonActionTrigger]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonAudioClipPlayer (Component)]] || Yes || Yes || | | [[ButtonAudioClipPlayer (Component)|ButtonAudioClipPlayer]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonAudioDeviceSet (Component)]] || No || Yes || | | [[ButtonAudioDeviceSet (Component)|ButtonAudioDeviceSet]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonClipboardCopyText (Component)]] || No || Yes || | | [[ButtonClipboardCopyText (Component)|ButtonClipboardCopyText]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonDelegateRelay´1 (Component)]] || No || Yes | | [[ButtonDelegateRelay´1 (Component)|ButtonDelegateRelay´1]] || {{No}} || {{Yes}} | ||
|- | |- | ||
| [[ButtonDestroy (Component)]] || No || Yes || | | [[ButtonDestroy (Component)|ButtonDestroy]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonDynamicImpulseTrigger (Component)]] || Yes || Yes || | | [[ButtonDynamicImpulseTrigger (Component)|ButtonDynamicImpulseTrigger]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonDynamicImpulseTriggerWithReference´1 (Component)]] || Yes || Yes || | | [[ButtonDynamicImpulseTriggerWithReference´1 (Component)|ButtonDynamicImpulseTriggerWithReference´1]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonDynamicImpulseTriggerWithValue´1 (Component)]] || Yes || Yes || | | [[ButtonDynamicImpulseTriggerWithValue´1 (Component)|ButtonDynamicImpulseTriggerWithValue´1]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonEditColorX (Component)]] || No || Yes || | | [[ButtonEditColorX (Component)|ButtonEditColorX]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonEnumShift´1 (Component)]] || No || Yes || | | [[ButtonEnumShift´1 (Component)|ButtonEnumShift´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonHoverEventRelay (Component)]] || Yes || No || | | [[ButtonHoverEventRelay (Component)|ButtonHoverEventRelay]] || {{Yes}} || {{No}} || | ||
|- | |- | ||
| [[ButtonHoverRelay (Component)]] || Yes || No || | | [[ButtonHoverRelay (Component)|ButtonHoverRelay]] || {{Yes}} || {{No}} || | ||
|- | |- | ||
| [[ButtonLoopSet (Component)]] || Yes || Yes || | | [[ButtonLoopSet (Component)|ButtonLoopSet]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonOpenHome (Component)]] || No || Yes || | | [[ButtonOpenHome (Component)|ButtonOpenHome]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonParentUnderUser (Component)]] || No || Yes || | | [[ButtonParentUnderUser (Component)|ButtonParentUnderUser]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonPlaybackAction (Component)]] || Yes || Yes || | | [[ButtonPlaybackAction (Component)|ButtonPlaybackAction]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonPlaybackSeeker (Component)]] || No || Yes || | | [[ButtonPlaybackSeeker (Component)|ButtonPlaybackSeeker]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonPressEventRelay (Component)]] || No || Yes || | | [[ButtonPressEventRelay (Component)|ButtonPressEventRelay]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonReferenceCycle´1 (Component)]] || No || Yes || | | [[ButtonReferenceCycle´1 (Component)|ButtonReferenceCycle´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonReferenceSet´1 (Component)]] || No || Yes || | | [[ButtonReferenceSet´1 (Component)|ButtonReferenceSet´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonRefRelay´1 (Component)]] || No || Yes || | | [[ButtonRefRelay´1 (Component)|ButtonRefRelay´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonRelay´1 (Component)]] || No || Yes || | | [[ButtonRelay´1 (Component)|ButtonRelay´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonRelay (Component)]] || No || Yes || | | [[ButtonRelay (Component)|ButtonRelay]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonStringAppend (Component)]] || No || Yes || | | [[ButtonStringAppend (Component)|ButtonStringAppend]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonStringErase (Component)]] || No || Yes || | | [[ButtonStringErase (Component)|ButtonStringErase]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonToggle (Component)]] || No || Yes || | | [[ButtonToggle (Component)|ButtonToggle]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonUserProfileIconSet (Component)]] || No || Yes || | | [[ButtonUserProfileIconSet (Component)|ButtonUserProfileIconSet]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonValueCycle´1 (Component)]] || No || Yes || | | [[ButtonValueCycle´1 (Component)|ButtonValueCycle´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonValueSet´1 (Component)]] || No || Yes || | | [[ButtonValueSet´1 (Component)|ButtonValueSet´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonValueShift´1 (Component)]] || No || Yes || | | [[ButtonValueShift´1 (Component)|ButtonValueShift´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ButtonWorldLink (Component)]] || No || Yes || | | [[ButtonWorldLink (Component)|ButtonWorldLink]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ContactLink (Component)]] || No || Yes || | | [[ContactLink (Component)|ContactLink]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[ContextMenuItem (Component)]] || Yes || Yes || | | [[ContextMenuItem (Component)|ContextMenuItem]] || {{Yes}} || {{Yes}} || | ||
|- | |- | ||
| [[ContextMenuItemSource (Component)]] || Yes || Yes || Despite not being a button event sender itself, it implements [[Type:IButton|IButton]] and can therefore be used with [[Button Events (ProtoFlux)|the Button Events ProtoFlux node]]. (It will proxy all button events it receives.) | | [[ContextMenuItemSource (Component)|ContextMenuItemSource]] || {{Yes}} || {{Yes}} || Despite not being a button event sender itself, it implements [[Type:IButton|IButton]] and can therefore be used with [[Button Events (ProtoFlux)|the Button Events ProtoFlux node]]. (It will proxy all button events it receives.) | ||
|- | |- | ||
| [[ContextMenuSubmenu (Component)]] || No || Yes || | | [[ContextMenuSubmenu (Component)|ContextMenuSubmenu]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[DataPreset (Component)]] || No || Yes || | | [[DataPreset (Component)|DataPreset]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[FileSystemItem (Component)]] || No || Yes || | | [[FileSystemItem (Component)|FileSystemItem]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[FullBodyCalibratorSpawner (Component)]] || No || Yes || | | [[FullBodyCalibratorSpawner (Component)|FullBodyCalibratorSpawner]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[GenericModalDialogSpawner´1 (Component)]] || No || Yes || | | [[GenericModalDialogSpawner´1 (Component)|GenericModalDialogSpawner´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[GenericUserspaceDialogSpawner´1 (Component)]] || No || Yes || | | [[GenericUserspaceDialogSpawner´1 (Component)|GenericUserspaceDialogSpawner´1]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[Hyperlink (Component)]] || No || Yes || | | [[Hyperlink (Component)|Hyperlink]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[InspectorMemberActions (Component)]] || No || Yes || | | [[InspectorMemberActions (Component)|InspectorMemberActions]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[InteractiveCameraSpawner (Component)]] || No || Yes || | | [[InteractiveCameraSpawner (Component)|InteractiveCameraSpawner]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[InventoryItemUI (Component)]] || No || Yes || | | [[InventoryItemUI (Component)|InventoryItemUI]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[RadiantDashButton (Component)]] || No || Yes || | | [[RadiantDashButton (Component)|RadiantDashButton]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[SlotRecord (Component)]] || No || Yes || | | [[SlotRecord (Component)|SlotRecord]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[Checkbox | | [[Checkbox (Component)|Checkbox]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[Expander (Component)]] || No || Yes || | | [[Expander (Component)|Expander]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[Perspective360Panner (Component)]] || Yes || No | | [[Perspective360Panner (Component)|Perspective360Panner]] || {{Yes}} || {{No}} | ||
|- | |- | ||
| [[Radio (Component)]] || No || Yes || | | [[Radio (Component)|Radio]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[TextField (Component)]] || No || Yes || | | [[TextField (Component)|TextField]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[VirtualCloseKey (Component)]] || No || Yes || | | [[VirtualCloseKey (Component)|VirtualCloseKey]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[VirtualKey (Component)]] || No || Yes || | | [[VirtualKey (Component)|VirtualKey]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[VirtualModifierKey (Component)]] || No || Yes || | | [[VirtualModifierKey (Component)|VirtualModifierKey]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[VirtualMultiKey (Component)]] || No || Yes || | | [[VirtualMultiKey (Component)|VirtualMultiKey]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[VirtualShift (Component)]] || No || Yes || | | [[VirtualShift (Component)|VirtualShift]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[WorldCloseAction (Component)]] || No || Yes || | | [[WorldCloseAction (Component)|WorldCloseAction]] || {{No}} || {{Yes}} || | ||
|- | |- | ||
| [[WorldThumbnailItem (Component)]] || Yes || Yes || | | [[WorldThumbnailItem (Component)|WorldThumbnailItem]] || {{Yes}} || {{Yes}} || | ||
|} | |} |
Revision as of 11:14, 19 January 2024
Button events provide a generalized system for buttons and actions triggered by buttons within Resonite. This abstraction allows components to define behaviors as responses to common button interactions without having to know the specific button the interaction originates from. When a button event sender component triggers an event, it will call all corresponding button event receiver components on a single target slot, which is usually the same one it is attached to. Button events do not traverse hierarchies in the same way Dynamic Impulses do.
You can use button events in ProtoFlux by using the Button Events node.
Event Types
Button events are separated into two categories, each defining 3 event types:
- Hover Events
- Hover Enter
- Hover Stay
- Hover Leave
- Press Events
- Pressed
- Pressing
- Released
Components that act as receivers for either or both of those event categories implement IButtonPressReceiver and IButtonHoverReceiver respectively.
Button Event Data
Each button event carries event data with information about the interaction the event originates from.
Property Name | Property Type |
---|---|
Source | Component |
Global Press Point | Float3 |
Local Press Point | Float2 |
Normalized Press Point | Float2 |
Button Event Senders
Component | Hover Events | Press Events | Notes |
---|---|---|---|
Button | Yes | Yes | |
ButtonHoverEventRelay | Yes | No | Relays button hover events to a specifiable slot instead of its own. |
ButtonPressEventRelay | No | Yes | Relays button press events to a specifiable slot instead of its own. |
LegacyButton | No | Yes | Only supports Pressed and Released, not Pressing. |
PhysicalButton | No | Yes | |
TouchButton | No | Yes |