mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Add an AfterClose event to menus
This commit is contained in:
parent
407e7e750b
commit
88b5a5dcaf
@ -20,6 +20,7 @@ void UMenuBase::Close(bool bWasCancel)
|
||||
RemoveFromParent();
|
||||
PreviousFocusWidget.Reset();
|
||||
}
|
||||
AfterClosed.Broadcast(this, bWasCancel);
|
||||
}
|
||||
|
||||
void UMenuBase::AddedToStack(UMenuStack* Parent)
|
||||
|
@ -21,8 +21,13 @@ class STEVESUEHELPERS_API UMenuBase : public UFocusablePanel
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
/// Raised just as the menu is closing
|
||||
UPROPERTY(BlueprintAssignable)
|
||||
FOnMenuClosed OnClosed;
|
||||
|
||||
/// Raised just after the menu has closed
|
||||
UPROPERTY(BlueprintAssignable)
|
||||
FOnMenuClosed AfterClosed;
|
||||
|
||||
protected:
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
|
Loading…
x
Reference in New Issue
Block a user