Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ToastWidgetBase.h
이 파일의 문서화 페이지로 가기
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "UI/UserWidgetBase.h"
9#include "ToastWidgetBase.generated.h"
10
11class UTextBlock;
12class UWidgetAnimation;
13class UImage;
14
18UCLASS(BlueprintType, Blueprintable)
19class CK_UE_API UToastWidgetBase : public UUserWidgetBase
20{
21 GENERATED_BODY()
22
23public:
24 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
25 void SetupToast(const FDT_ToastMessageTable& InToastData);
26
27 UFUNCTION(BlueprintPure, Category = "UI|Toast")
28 FDT_ToastMessageTable GetToastData() const;
29
30 UFUNCTION(BlueprintPure, Category = "UI|Toast")
31 int32 GetToastID() const;
32
33 UFUNCTION(BlueprintPure, Category = "UI|Toast")
34 float GetToastDuration() const;
35
36 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
37 void PlayEnterToastAnimation();
38
39 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
40 void PlayExitToastAnimation();
41
42 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
43 void PlayPingPongToastAnimation();
44
45 UFUNCTION(BlueprintPure, Category = "UI|Toast")
46 float GetExitAnimationDuration() const;
47
48 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
49 void QueueNextToastData(const FDT_ToastMessageTable& InToastData);
50
51 UFUNCTION(BlueprintCallable, Category = "UI|Toast")
52 bool ApplyPendingToastData();
53
54 UFUNCTION(BlueprintPure, Category = "UI|Toast")
55 bool HasPendingToastData() const;
56
57protected:
58 void ApplyToastDataInternal(const FDT_ToastMessageTable& InToastData);
59 FDT_PortraitTable GetPortraitData() const;
60
61protected:
62 UFUNCTION(BlueprintImplementableEvent, Category = "UI|Toast")
63 void OnToastDataAssigned(const FDT_ToastMessageTable& InToastData);
64
65protected:
66 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast")
68
69 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast")
70 FDT_ToastMessageTable PendingToastData;
71
72 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast")
73 bool bHasPendingToastData = false;
74
75 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidget))
76 TObjectPtr<UTextBlock> ToastDialog;
77
78 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidget))
79 TObjectPtr<UImage> CharacterImage;
80
81 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidget))
82 TObjectPtr<UTextBlock> CharacterName;
83
84 UPROPERTY(Transient, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidgetAnimOptional))
85 TObjectPtr<UWidgetAnimation> EnterAnimation;
86
87 UPROPERTY(Transient, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidgetAnimOptional))
88 TObjectPtr<UWidgetAnimation> ExitAnimation;
89
90 UPROPERTY(Transient, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidgetAnimOptional))
91 TObjectPtr<UWidgetAnimation> PingPongAnimation;
92
93 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (ClampMin = "0.0"))
94 float ExitAnimationDuration = 0.3f;
95};
Definition ToastWidgetBase.h:20
Definition UserWidgetBase.h:33
Definition DT_PortraitTable.h:10
Definition DT_ToastMessageTable.h:10