Open and close delegates changed to multicast delegates, since we need to use these in multiple places now.
This commit is contained in:
parent
ad35203527
commit
af66792d04
@ -14,9 +14,7 @@ void ULoadingScreenWidget::NativePreConstruct()
|
||||
void ULoadingScreenWidget::LoadScreenOpened()
|
||||
{
|
||||
this->UnbindAllFromAnimationFinished(this->Fade);
|
||||
#if !WITH_EDITOR
|
||||
this->OnLoadScreenOpened.ExecuteIfBound();
|
||||
#endif
|
||||
this->OnLoadScreenOpened.Broadcast();
|
||||
}
|
||||
|
||||
void ULoadingScreenWidget::BeginFadeOut_Implementation()
|
||||
@ -30,7 +28,5 @@ void ULoadingScreenWidget::BeginFadeOut_Implementation()
|
||||
void ULoadingScreenWidget::LoadScreenClosed()
|
||||
{
|
||||
this->UnbindAllFromAnimationFinished(this->Fade);
|
||||
#if !WITH_EDITOR
|
||||
this->OnLoadScreenClosed.ExecuteIfBound();
|
||||
#endif
|
||||
this->OnLoadScreenClosed.Broadcast();
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
UFUNCTION(BlueprintNativeEvent)
|
||||
void BeginFadeOut();
|
||||
|
||||
DECLARE_DELEGATE(FOnLoadScreenEvent)
|
||||
DECLARE_MULTICAST_DELEGATE(FOnLoadScreenEvent)
|
||||
FOnLoadScreenEvent OnLoadScreenOpened;
|
||||
FOnLoadScreenEvent OnLoadScreenClosed;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user