LimenGenericModalWidget
Overview
ULimenGenericModalWidget is a subclass of ULimenWidget designed to create and manage a modal dialog. It allows setting parameters such as the title and content, and provides events for when the modal is dismissed with either acceptance or rejection.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FModalParams | ModalParams | BlueprintReadOnly | The current parameters of the modal (title and content). |
Functions
Return Type | Signature | Description |
|---|---|---|
void | SetParams(const FModalParams& InParams) | Sets the parameters for the modal and triggers an event to update the UI. |
void | ModalDismissed(const bool bAccepted) | Handles the dismissal of the modal, destroying it and broadcasting a response event with whether the user accepted or dismissed the modal. |
Usage & Implementation Notes
The widget is set to be at level 20 and initially visible.
The
ModalParamsUpdatedfunction is a BlueprintImplementableEvent that can be overridden in Blueprints to update the UI based on new parameters.The
OnModalResponseReceiveddelegate is broadcast when the modal is dismissed, providing a reference to the widget and whether it was accepted.