ULimenNotificationWidget
Overview
ULimenNotificationWidget is an abstract, blueprintable widget class designed to handle the display and lifecycle of notifications within the game. It inherits from ULimenWidget and provides functionality to set notification parameters, manage visibility, and trigger animations.
Properties
Type | Name | Access | Description |
|---|---|---|---|
TObjectPtr | WidgetAnimation | BlueprintReadWrite | The animation used for showing and hiding the widget. |
float | DisplayTime | BlueprintGetter=GetDisplayTime | The duration for which the notification will be displayed. |
FText | NotificationTitle | BlueprintGetter=GetNotificationTitle | The title text of the notification. |
FText | NotificationMessage | BlueprintGetter=GetNotificationMessage | The message text of the notification. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | SetNotificationParams(const float InDisplayTime, const FText& InNotificationTitle, const FText& InNotificationMessage) | Sets the parameters for the notification (display time, title, and message). Triggers |
float | GetDisplayTime() const | Returns the display time of the notification. |
FText& | GetNotificationTitle() | Returns a reference to the notification title. |
FText& | GetNotificationMessage() | Returns a reference to the notification message. |
double | GetDelayTime(UWidgetAnimation* InShowAnimation, UWidgetAnimation* InHideAnimation, bool& bIsPositive) const | Calculates the delay time between the end of show and hide animations. Sets |
void | NotificationParamsUpdated(const float InDisplayTime, const FText& InNotificationTitle, const FText& InNotificationMessage) | A blueprint-implementable event that gets triggered when notification parameters are updated. |
Usage & Implementation Notes
The widget level is set to 9 in the constructor.
Default visibility state is set to
HitTestInvisibleinNativeConstruct.The
SetNotificationParamsfunction updates internal properties and triggers a blueprint-implementable event for further customization.