35 virtual void Initialize(FSubsystemCollectionBase& Collection)
override;
36 virtual void Deinitialize()
override;
40 virtual void OnLevelUnloaded()
override;
47 FGameplayTag GetActivePresenterInputLayer()
const;
50 TArray<UUserWidgetBase*> GetBoundPresenterViews()
const;
56 void PrintAllLayers();
61 UFUNCTION(BlueprintCallable, Category =
"UI|Presenter", meta = (DeterminesOutputType =
"PresenterClass"))
64 UFUNCTION(BlueprintPure, Category = "UI|Presenter", meta = (DeterminesOutputType = "PresenterClass"))
68 UFUNCTION(BlueprintPure, Category = "UI|Presenter")
71 UFUNCTION(BlueprintCallable, Category = "UI|Presenter")
74 UFUNCTION(BlueprintCallable, Category = "UI|Presenter")
77 UFUNCTION(BlueprintCallable, Category = "UI|Presenter")
85 UFUNCTION(BlueprintCallable, Category = "UI")
89 UFUNCTION(BlueprintCallable, Category = "UI")
93 UFUNCTION(BlueprintCallable, Category = "UI")
97 UFUNCTION(BlueprintCallable, Category = "UI", meta = (DefaultToSelf = "Widget", HidePin = "Widget"))
101 UFUNCTION(BlueprintCallable, Category = "UI")
102 void HandleBackInput();
104 UFUNCTION(BlueprintCallable, Category = "UI", meta = (DefaultToSelf = "Widget"))
107 UFUNCTION(BlueprintCallable, Category = "UI")
108 void PopAllWidgetsInLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag);
110 UFUNCTION(BlueprintCallable, Category = "UI")
111 void PopAllLayer(
bool WithPrimaryWidgets = false);
113 UFUNCTION(BlueprintCallable, Category = "UI")
114 UUILayer* GetLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag) const;
116 UFUNCTION(BlueprintCallable, Category = "UI")
117 UUserWidgetBase* FindFirstWidgetByArgs(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag, const TSubclassOf<UUserWidget> ClassType) const;
119 UFUNCTION(BlueprintCallable, Category = "UI")
120 UUserWidgetBase* FindFirstWidgetInLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag, const TSubclassOf<UUserWidget> ClassType,
bool& Valid) const;
122 UFUNCTION(BlueprintCallable, Category = "UI")
125 UFUNCTION(BlueprintCallable, Category = "UI")
128 UFUNCTION(BlueprintCallable, Category = "UI")
129 UUILayer* CreateLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag, TSubclassOf<
UUILayer> LayerClass =
nullptr);
131 UFUNCTION(BlueprintCallable, Category = "UI")
132 void RemoveLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag);
134 UFUNCTION(BlueprintCallable, Category = "UI")
135 void ShowLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag);
137 UFUNCTION(BlueprintCallable, Category = "UI")
138 void HideLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag LayerTag);
140 UFUNCTION(BlueprintCallable, Category = "UI")
141 void ClearAllLayers();
144 UFUNCTION(BlueprintPure, Category = "UI|Input")
145 FGameplayTag GetActiveInputLayer() const;
147 UFUNCTION(BlueprintPure, Category = "UI|Input")
148 UInputMappingContext* GetUIInputMappingContext() const;
151 UFUNCTION(BlueprintPure, Category = "UI")
152 int32 GetWidgetCountInLayer(UPARAM(meta = (Categories = "UI.Layer")) FGameplayTag UILayerTag,
bool bIncludeHiddenWidgets = true) const;
156 UFUNCTION(BlueprintPure, Category = "UI|Presenter")
159 return GetWidgetsByPresenter(FindPresenter(PresenterClass));
172 return OnInputLayerChanged;
178 UUserWidgetBase* PushWidgetToLayer(
UUserWidgetBase* Widget, FGameplayTag LayerTag, int32 ZOrder,
UUILayer*& OutLayer,
bool bActivateOnPush =
true,
bool bCanIncludeInSnapshot =
false, UPanelWidget* ParentPanel =
nullptr);
179 UUILayer* GetOrCreateLayer(FGameplayTag LayerTag);
180 void RefreshLayerState();
182 void HandleWidgetVisibilityChanged(ESlateVisibility InVisibility);
185 void ApplyLayerTimeScale(
float LayerTimeScale);
188 float GetActiveLayerTimeScale()
const;
191 void HandleTimeScaleRaised(
float NewTimeScale);
193 void BindWidgetPresenter(
UUserWidgetBase* View, TSubclassOf<UUserPresenterBase> PresenterClass);
198 UPROPERTY(BlueprintAssignable, Category =
"UI|Input", meta = (AllowPrivateAccess =
"true"))
199 FOnInputLayerChanged OnInputLayerChanged;
216 bool bPresenterShutdown = false;
Definition UIContext.h:10