level fixes

This commit is contained in:
Oleg Petruny 2025-05-01 18:09:59 +02:00
parent d60ef5982b
commit 5108dcf59c
15 changed files with 16 additions and 31 deletions

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(); }