Loading Screen #13

Merged
oleg.petruny merged 4 commits from LoadingScreen into master 2025-05-01 16:10:43 +00:00
15 changed files with 16 additions and 31 deletions
Showing only changes of commit 5108dcf59c - Show all commits

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -159,7 +159,6 @@ void UCutsceneManager::OnFirstCutsceneInit() // most first sequence, so widgets
static FSkipCutsceneDelegate skipCutsceneDelegate;
if(!skipCutsceneDelegate.IsBound())
skipCutsceneDelegate.BindDynamic(this, &UCutsceneManager::SkipSequence);
WM->AnimateCutsceneWidget(EInputAnimatedWidgetAnimation::Reset);
WM->EnableCutsceneWidget(skipCutsceneDelegate);
}
}

View File

@ -4,5 +4,6 @@ void UCutsceneSkipWidget::SetVisibility(ESlateVisibility InVisibility)
{
if(InVisibility == ESlateVisibility::Hidden)
RunAnimation(EInputAnimatedWidgetAnimation::Reset);
PlayAnimation(unHide, 0.0f, 1, (InVisibility == ESlateVisibility::Visible ? EUMGSequencePlayMode::Forward : EUMGSequencePlayMode::Reverse));
Super::SetVisibility(InVisibility);
}

View File

@ -22,6 +22,9 @@ public:
UPROPERTY(meta = (BindWidget))
class UTextBlock* keyText;
UPROPERTY(Transient, meta = (BindWidgetAnim))
class UWidgetAnimation* unHide;
protected:
UFUNCTION(BlueprintCallable)
void SkipCutscene() { skipCutsceneDelegate.Execute(); }