|
|
|
|
| #pragma once
|
|
|
| #include "LyraActivatableWidget.h"
|
| #include "Containers/Ticker.h"
|
| #include "GameplayTagContainer.h"
|
|
|
| #include "LyraHUDLayout.generated.h"
|
|
|
| class UCommonActivatableWidget;
|
| class UObject;
|
| class ULyraControllerDisconnectedScreen;
|
|
|
| |
| |
| |
| |
|
|
| UCLASS(Abstract, BlueprintType, Blueprintable, Meta = (DisplayName = "Lyra HUD Layout", Category = "Lyra|HUD"))
|
| class ULyraHUDLayout : public ULyraActivatableWidget
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
|
|
| ULyraHUDLayout(const FObjectInitializer& ObjectInitializer);
|
|
|
| virtual void NativeOnInitialized() override;
|
| virtual void NativeDestruct() override;
|
|
|
| protected:
|
| void HandleEscapeAction();
|
|
|
| |
| |
| |
| |
| |
|
|
| void HandleInputDeviceConnectionChanged(EInputDeviceConnectionState NewConnectionState, FPlatformUserId PlatformUserId, FInputDeviceId InputDeviceId);
|
|
|
| |
| |
| |
|
|
| void HandleInputDevicePairingChanged(FInputDeviceId InputDeviceId, FPlatformUserId NewUserPlatformId, FPlatformUserId OldUserPlatformId);
|
|
|
| |
| |
| |
|
|
| void NotifyControllerStateChangeForDisconnectScreen();
|
|
|
| |
| |
| |
| |
|
|
| virtual void ProcessControllerDevicesHavingChangedForDisconnectScreen();
|
|
|
| |
| |
|
|
| virtual bool ShouldPlatformDisplayControllerDisconnectScreen() const;
|
|
|
| |
| |
|
|
| UFUNCTION(BlueprintNativeEvent, Category="Controller Disconnect Menu")
|
| void DisplayControllerDisconnectedMenu();
|
|
|
| |
| |
|
|
| UFUNCTION(BlueprintNativeEvent, Category="Controller Disconnect Menu")
|
| void HideControllerDisconnectedMenu();
|
|
|
| |
| |
|
|
| UPROPERTY(EditDefaultsOnly)
|
| TSoftClassPtr<UCommonActivatableWidget> EscapeMenuClass;
|
|
|
| |
| |
|
|
| UPROPERTY(EditDefaultsOnly, Category="Controller Disconnect Menu")
|
| TSubclassOf<ULyraControllerDisconnectedScreen> ControllerDisconnectedScreen;
|
|
|
| |
| |
| |
| |
| |
|
|
| UPROPERTY(EditDefaultsOnly, Category="Controller Disconnect Menu")
|
| FGameplayTagContainer PlatformRequiresControllerDisconnectScreen;
|
|
|
|
|
| UPROPERTY(Transient)
|
| TObjectPtr<UCommonActivatableWidget> SpawnedControllerDisconnectScreen;
|
|
|
|
|
| FTSTicker::FDelegateHandle RequestProcessControllerStateHandle;
|
| };
|
|
|