@@ -22,6 +22,8 @@ class SWColorWheel;
2222 */
2323DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FColorChangedEvent, const FLinearColor&, NewColor);
2424
25+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FPositionUpdatedEvent, const FVector2D&, NewPosition);
26+
2527/* * Delegate: Broadcasted when the mouse is down on the Wheel. */
2628DECLARE_DYNAMIC_MULTICAST_DELEGATE (FMouseDownEvent);
2729
@@ -56,10 +58,14 @@ class COLORWHEELPLUGIN_API UColorWidget final : public UWidget
5658 | Events |
5759 \============================================================================*/
5860
59- /* * Event called when value is changed */
61+ /* * Event called when color value is changed */
6062 UPROPERTY (BlueprintAssignable, Category=" Color Wheel|Event" )
6163 FColorChangedEvent OnColorChanged;
6264
65+ /* * Event called when value is changed */
66+ UPROPERTY (BlueprintAssignable, Category = " Color Wheel|Event" )
67+ FPositionUpdatedEvent OnPositionChanged;
68+
6369 /* * Event called when the mouse is being pressed on the wheel */
6470 UPROPERTY (BlueprintAssignable, Category=" Color Wheel|Event" )
6571 FMouseDownEvent OnMouseDown;
@@ -135,6 +141,8 @@ class COLORWHEELPLUGIN_API UColorWidget final : public UWidget
135141 // Callback Function: Handles the broadcasting of the delegate once a color changes.
136142 void OnValueChanged (FLinearColor NewValue);
137143
144+ void OnPositionUpdated (FVector2D NewPosition);
145+
138146 // Callback Function: Handles the broadcasting for when the Mouse is lifted from the wheel.
139147 inline void MouseUp () { OnMouseUp.Broadcast (); };
140148
0 commit comments