Compare commits

...

2 Commits

Author SHA1 Message Date
a6e232e30a fix ue asset 2024-12-23 21:32:01 +01:00
e2d5098b45 Photo mode init 2024-12-20 19:33:00 +01:00
28 changed files with 71 additions and 41 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -13,8 +13,8 @@ class UInteractableHintWidget : public UResolutionResponsiveUserWidget, public I
GENERATED_BODY() GENERATED_BODY()
public: public:
UPROPERTY(meta = (BindWidget)) UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
class UTextBlock* keyText; class UTextBlock* keyText;
UPROPERTY(meta = (BindWidget)) UPROPERTY(BlueprintReadWrite, meta = (BindWidget))
class UTextBlock* descriptionText; 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() void UQuickTimeEventWidget::NativeConstruct()
{ {
Super::NativeConstruct();
FWidgetAnimationDynamicEvent onTimerFinish; FWidgetAnimationDynamicEvent onTimerFinish;
onTimerFinish.BindDynamic(this, &UQuickTimeEventWidget::RemoveEvent); onTimerFinish.BindDynamic(this, &UQuickTimeEventWidget::RemoveEvent);
BindToAnimationFinished(eventAnimation, onTimerFinish); BindToAnimationFinished(eventAnimation, onTimerFinish);
@ -16,8 +18,6 @@ void UQuickTimeEventWidget::NativeConstruct()
FWidgetAnimationDynamicEvent onRemove; FWidgetAnimationDynamicEvent onRemove;
onRemove.BindDynamic(this, &UQuickTimeEventWidget::RemoveFromManager); onRemove.BindDynamic(this, &UQuickTimeEventWidget::RemoveFromManager);
BindToAnimationFinished(removeAnimation, onRemove); BindToAnimationFinished(removeAnimation, onRemove);
return Super::NativeConstruct();
} }
void UQuickTimeEventWidget::Show() void UQuickTimeEventWidget::Show()