Files
UnrealEngineUWP/Engine/Source/Editor/GameplayDebugger/Public/GameplayDebuggerInputConfigCustomization.h
Ryan Hummer 10dfd9e984 touching files
#rnx
#jira none
#rb none
#preflight none

[CL 23291423 by Ryan Hummer in ue5-main branch]
2022-11-28 12:07:31 -05:00

35 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IPropertyTypeCustomization.h"
class IPropertyHandle;
class FGameplayDebuggerInputConfigCustomization : public IPropertyTypeCustomization
{
public:
static TSharedRef<IPropertyTypeCustomization> MakeInstance()
{
return MakeShareable(new FGameplayDebuggerInputConfigCustomization);
}
virtual void CustomizeHeader(TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
virtual void CustomizeChildren(TSharedRef<class IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
protected:
TSharedPtr<IPropertyHandle> ConfigNameProp;
TSharedPtr<IPropertyHandle> KeyProp;
TSharedPtr<IPropertyHandle> ModShiftProp;
TSharedPtr<IPropertyHandle> ModCtrlProp;
TSharedPtr<IPropertyHandle> ModAltProp;
TSharedPtr<IPropertyHandle> ModCmdProp;
FText CachedHeader;
FText GetHeaderDesc() const { return CachedHeader; }
void OnChildValueChanged();
};