Files
UnrealEngine/Engine/Plugins/Runtime/ZoneGraph/Source/ZoneGraphEditor/Private/ZoneGraphTessellationSettingsDetails.h
2025-05-18 13:04:45 +08:00

51 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Layout/Visibility.h"
#include "UnrealClient.h"
#include "IPropertyTypeCustomization.h"
#include "ZoneGraphTypes.h"
class IPropertyHandle;
/**
* Type customization for FZoneGraphTessellationSettings.
*/
class FZoneGraphTessellationSettingsDetails : public IPropertyTypeCustomization
{
public:
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
/** IPropertyTypeCustomization interface */
virtual void CustomizeHeader(TSharedRef<IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
private:
FLinearColor GetAnyTagsColor() const;
FText GetAnyTagsDescription() const;
EVisibility IsAnyTagsVisible() const;
FLinearColor GetAllTagsColor() const;
FText GetAllTagsDescription() const;
EVisibility IsAllTagsVisible() const;
FLinearColor GetNotTagsColor() const;
FText GetNotTagsDescription() const;
EVisibility IsNotTagsVisible() const;
FText GetToleranceDescription() const;
TSharedPtr<IPropertyHandle> AnyTagsProperty;
TSharedPtr<IPropertyHandle> AllTagsProperty;
TSharedPtr<IPropertyHandle> NotTagsProperty;
TSharedPtr<IPropertyHandle> AnyTagsMaskProperty;
TSharedPtr<IPropertyHandle> AllTagsMaskProperty;
TSharedPtr<IPropertyHandle> NotTagsMaskProperty;
TSharedPtr<IPropertyHandle> ToleranceProperty;
class IPropertyUtilities* PropUtils;
TSharedPtr<IPropertyHandle> StructProperty;
};