147{
149 {
151 }
153 {
155 if(
bDebuggingMode){UE_LOG(LogBaseWidgets ,
Warning,TEXT(
"UNotificationManager::AddNotification Add Notification Widget"));}
159 {
161 }
162 UUserWidget* NotificationWidget = CreateWidget<UUserWidget>(GetOwningPlayer(), WidgetClass);
163 if(NotificationWidget ==
nullptr){UE_LOG(LogBaseWidgets ,
Error,TEXT(
"UNotificationManager::AddNotification NotificationWidget null"));
StopNotifications();
return;}
166 {
167 UE_LOG(LogBaseWidgets,
Error, TEXT(
"UNotificationManager::AddNotification INotificationInterface null"));
168 return;
169 }
172
174 {
176 if(SlotWidget ==
nullptr){UE_LOG(LogBaseWidgets,
Error, TEXT(
"UNotificationManager::AddNotification Slot %s Doesn't Exist on %s"), *Data.
SlotName.ToString(), *GetName())return;}
177 SlotWidget->AddWidgetToSlot(NotificationWidget, false);
178 }
179 else
180 {
182 }
185 {
188 return;
189 }
192 {
194 }
196 }
197 else
198 {
201 }
202}
virtual void SetLifeDuration(const float Value)=0
virtual void SetNotificationData(const FNotificationData &Data)=0
bool IsValidSlot(const FGameplayTag &SlotTag) const
Definition NotificationManager.cpp:204
float NextNotificationTime
Definition NotificationManager.h:57
TSubclassOf< UUserWidget > NotificationWidgetClass
Definition NotificationManager.h:87
bool bMultipleAtOnce
Definition NotificationManager.h:53
float EndNotificationDelay
Definition NotificationManager.h:61
FTimerHandle NotificationTimerHandle
Definition NotificationManager.h:97
bool bInstant
Definition NotificationManager.h:55
USlotWidget * FindSlotByTag(const FGameplayTag &SlotTag) const
Definition NotificationManager.cpp:49
void AddNotification()
Definition NotificationManager.cpp:146
TSubclassOf< UUserWidget > GetCustomClass(const FGameplayTag &SlotTag)
Definition NotificationManager.cpp:211
class UOverlay * NotificationOverlay
Definition NotificationManager.h:66
void StopNotifications()
Definition NotificationManager.cpp:222
bool bIsShowingNotification
Definition NotificationManager.h:92
bool bDebuggingMode
Definition NotificationManager.h:50
INotificationInterface * CurrentNotification
Definition NotificationManager.h:94
TArray< FNotificationData > NotificationsQueue
Definition NotificationManager.h:63
FTimerHandle NotificationEndTimerHandle
Definition NotificationManager.h:101
Definition RadialWheelData.h:17
bool bUseSlot
Definition RadialWheelData.h:31
bool bUseCustomClass
Definition RadialWheelData.h:42
FGameplayTag SlotName
Definition RadialWheelData.h:33
bool bUseCustomLife
Definition RadialWheelData.h:45
float LifeDuration
Definition RadialWheelData.h:47