45 UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category =
"Popup|Setup")
46 TMap<
EPopupType, TSubclassOf<UUserWidget>> PopupClassMap;
71 UFUNCTION(BlueprintCallable, Category = "Popup")
91 return Cast<T>(ShowPopup(Type));
114 return Mgr->ShowPopupAs<T>(Type);
124 UFUNCTION(BlueprintCallable, Category =
"Popup")
125 void HidePopup(
EPopupType Type,
bool bDestroyWidget = false);
131 UFUNCTION(BlueprintCallable, Category = "Popup")
132 void HideCurrentPopup(
bool bDestroyWidget = false);
138 UFUNCTION(BlueprintCallable, Category = "Popup")
139 void HideAllPopups(
bool bDestroyWidgets = false);
150 UFUNCTION(BlueprintCallable, Category = "Popup")
151 bool GetCurrentPopupType(
EPopupType& OutType) const;
157 UFUNCTION(BlueprintCallable, Category = "Popup")
158 UUserWidget* GetCurrentPopupWidget() const;
165 UFUNCTION(BlueprintCallable, Category = "Popup")
166 UUserWidget* GetPopupWidget(
EPopupType Type) const;
173 UFUNCTION(BlueprintCallable, Category = "Popup")
180 UFUNCTION(BlueprintCallable, Category = "Popup")
181 int32 GetPopupStackCount() const;
188 UFUNCTION(BlueprintCallable, Category = "Popup")
189 bool ShouldBlockPlayerControl() const;
203 const FString& InTitle,
204 const FString& InDescription,
206 const FOnMsgBoxOkDelegate& InOkDelegate);
217 const FString& InTitle,
218 const FString& InDescription,
220 const FOnMsgBoxOkDelegate& InOkDelegate,
221 const FOnMsgBoxCancelDelegate& InCancelDelegate);
230 UFUNCTION(BlueprintCallable, Category = "Popup|MessageBox")
231 void ShowMsgBoxSimple(
232 const FString& InTitle,
233 const FString& InDescription,
246 UUserWidget* EnsurePopupWidget(
EPopupType Type);