Photo mode init

This commit is contained in:
Oleg Petruny 2024-12-03 08:10:04 +01:00
parent 179eacb628
commit e2d5098b45
29 changed files with 73 additions and 43 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -67,4 +67,4 @@ void ACameraModeBase::SwitchRun(bool run)
// GetMovement()->MaxWalkSpeed = moveSpeed * runSpeedMultiplier;
//else
// GetCharacterMovement()->MaxWalkSpeed = moveSpeed;
}
}

View File

@ -13,8 +13,8 @@ class UInteractableHintWidget : public UResolutionResponsiveUserWidget, public I
GENERATED_BODY()
public:
UPROPERTY(meta = (BindWidget))
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
class UTextBlock* keyText;
UPROPERTY(meta = (BindWidget))
UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
class UTextBlock* descriptionText;
};

View File

@ -0,0 +1,5 @@
// Oleg Petruny proprietary.
#include "PhotoModeWidget.h"

View File

@ -0,0 +1,22 @@
// Oleg Petruny proprietary.
#pragma once
#include "Blueprint/UserWidget.h"
#include "PhotoModeWidget.generated.h"
UCLASS(Blueprintable, Abstract)
class UPhotoModeWidget : public UUserWidget
{
GENERATED_BODY()
public:
// hints
UPROPERTY(meta = (BindWidget))
class UInteractableHintWidget* move;
UPROPERTY(meta = (BindWidget))
class UInteractableHintWidget* rotate;
UPROPERTY(meta = (BindWidget))
class UInteractableHintWidget* distace;
};

View File

@ -9,6 +9,8 @@
void UQuickTimeEventWidget::NativeConstruct()
{
Super::NativeConstruct();
FWidgetAnimationDynamicEvent onTimerFinish;
onTimerFinish.BindDynamic(this, &UQuickTimeEventWidget::RemoveEvent);
BindToAnimationFinished(eventAnimation, onTimerFinish);
@ -16,8 +18,6 @@ void UQuickTimeEventWidget::NativeConstruct()
FWidgetAnimationDynamicEvent onRemove;
onRemove.BindDynamic(this, &UQuickTimeEventWidget::RemoveFromManager);
BindToAnimationFinished(removeAnimation, onRemove);
return Super::NativeConstruct();
}
void UQuickTimeEventWidget::Show()