2019-12-26 15:32:37 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2016-07-05 14:25:57 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-11-23 15:48:37 -05:00
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
|
2016-07-05 14:25:57 -04:00
|
|
|
#if WITH_EDITOR
|
2016-11-23 15:48:37 -05:00
|
|
|
|
2016-07-05 14:25:57 -04:00
|
|
|
#include "IPropertyTypeCustomization.h"
|
|
|
|
|
|
2016-11-23 15:48:37 -05:00
|
|
|
class IPropertyHandle;
|
|
|
|
|
|
2016-07-05 14:25:57 -04:00
|
|
|
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();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // WITH_EDITOR
|