49 UFUNCTION(BlueprintCallable, Category =
"UI|Toast")
50 bool ShowToastByID(
const int32 ToastID,
const bool bDiscardPendingToasts =
false);
52 UFUNCTION(BlueprintCallable, Category =
"UI|Toast")
53 bool ShowToastByRowName(
const FName ToastRowName,
const bool bDiscardPendingToasts =
false);
55 UFUNCTION(BlueprintCallable, Category =
"UI|Toast")
59 UFUNCTION(BlueprintCallable, Category =
"UI|Toast")
60 FORCEINLINE
void SetToastDataTable(UDataTable* InToastDataTable)
62 CachedToastDataTable = InToastDataTable;
65 UFUNCTION(BlueprintPure, Category =
"UI|Toast")
66 FORCEINLINE UDataTable* GetToastDataTable()
const
68 return CachedToastDataTable;
74 int32 FindActiveToastIndexByGroupID(
const int32 GroupID)
const;
77 void RequestOldestToastExit();
78 void ProcessPendingToastQueue();
79 UDataTable* ResolveToastDataTable();
87 void StartToastDurationTimer(
UToastWidgetBase* ToastWidget,
const float ToastDuration);
94 const int32 EffectiveMaxStackCount = FMath::Max(1, MaxStackCount);
95 return ActiveToastWidgets.Num() + ExitingToastCount < EffectiveMaxStackCount;
99 UFUNCTION(BlueprintImplementableEvent, Category =
"UI|Toast")
103 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UI|Toast")
106 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (ClampMin = "1"))
107 int32 MaxStackCount = 3;
109 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast")
110 TObjectPtr<UDataTable> CachedToastDataTable;
112 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "UI|Toast", meta = (BindWidget))
113 TObjectPtr<UStackBox> ToastMessageStack;
122 int32 ExitingToastCount = 0;