RealtimeStyleTransferRuntime/Source/LyraGame/UI/LyraSettingScreen.h

50 lines
1.3 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
2022-09-13 07:18:28 +00:00
#pragma once
#include "Engine/DataTable.h"
#include "Input/UIActionBindingHandle.h"
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "Widgets/GameSettingScreen.h"
#include "LyraSettingScreen.generated.h"
2022-09-13 07:18:28 +00:00
class UGameSettingRegistry;
2022-05-23 18:41:30 +00:00
class ULyraTabListWidgetBase;
2022-09-13 07:18:28 +00:00
class UObject;
2022-05-23 18:41:30 +00:00
UCLASS(Abstract, meta = (Category = "Settings", DisableNativeTick))
class ULyraSettingScreen : public UGameSettingScreen
{
GENERATED_BODY()
public:
protected:
virtual void NativeOnInitialized() override;
virtual UGameSettingRegistry* CreateRegistry() override;
void HandleBackAction();
void HandleApplyAction();
void HandleCancelChangesAction();
virtual void OnSettingsDirtyStateChanged_Implementation(bool bSettingsDirty) override;
protected:
UPROPERTY(BlueprintReadOnly, Category = Input, meta = (BindWidget, OptionalWidget = true, AllowPrivateAccess = true))
2022-09-13 07:18:28 +00:00
TObjectPtr<ULyraTabListWidgetBase> TopSettingsTabs;
2022-05-23 18:41:30 +00:00
UPROPERTY(EditDefaultsOnly)
FDataTableRowHandle BackInputActionData;
UPROPERTY(EditDefaultsOnly)
FDataTableRowHandle ApplyInputActionData;
UPROPERTY(EditDefaultsOnly)
FDataTableRowHandle CancelChangesInputActionData;
FUIActionBindingHandle BackHandle;
FUIActionBindingHandle ApplyHandle;
FUIActionBindingHandle CancelChangesHandle;
};