Files
UnrealEngineUWP/Engine/Source/Editor/GameplayDebugger/Public/GameplayDebuggerExtensionConfigCustomization.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

31 lines
1007 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IPropertyTypeCustomization.h"
class IPropertyHandle;
class FGameplayDebuggerExtensionConfigCustomization : public IPropertyTypeCustomization
{
public:
static TSharedRef<IPropertyTypeCustomization> MakeInstance()
{
return MakeShareable(new FGameplayDebuggerExtensionConfigCustomization);
}
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> ExtensionNameProp;
TSharedPtr<IPropertyHandle> UseExtensionProp;
FText CachedHeader;
FText GetHeaderDesc() const { return CachedHeader; }
void OnChildValueChanged();
};