You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
59 lines
1.9 KiB
C++
59 lines
1.9 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Layout/Visibility.h"
|
|
#include "Widgets/SWidget.h"
|
|
#include "UnrealClient.h"
|
|
#include "IPropertyTypeCustomization.h"
|
|
|
|
class IPropertyHandle;
|
|
|
|
class FEnvTraceDataCustomization : public IPropertyTypeCustomization
|
|
{
|
|
public:
|
|
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
|
|
|
|
//~ Begin IPropertyTypeCustomization Interface
|
|
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;
|
|
//~ End IPropertyTypeCustomization Interface
|
|
|
|
protected:
|
|
|
|
void CacheTraceModes(TSharedRef<class IPropertyHandle> StructPropertyHandle);
|
|
|
|
/** cached names of trace modes */
|
|
struct FTextIntPair
|
|
{
|
|
FText Text;
|
|
int32 Int;
|
|
|
|
FTextIntPair() {}
|
|
FTextIntPair(FText InText, int32 InInt) : Text(InText), Int(InInt) {}
|
|
};
|
|
TArray<FTextIntPair> TraceModes;
|
|
bool bCanShowProjection;
|
|
uint8 ActiveMode;
|
|
|
|
TSharedPtr<IPropertyHandle> PropTraceMode;
|
|
TSharedPtr<IPropertyHandle> PropTraceShape;
|
|
TSharedPtr<IPropertyHandle> PropTraceChannel;
|
|
TSharedPtr<IPropertyHandle> PropTraceChannelSerialized;
|
|
|
|
void OnTraceChannelChanged();
|
|
void OnTraceModeChanged(int32 Index);
|
|
TSharedRef<SWidget> OnGetTraceModeContent();
|
|
FText GetCurrentTraceModeDesc() const;
|
|
FText GetShortDescription() const;
|
|
|
|
EVisibility GetGeometryVisibility() const;
|
|
EVisibility GetNavigationVisibility() const;
|
|
EVisibility GetProjectionVisibility() const;
|
|
EVisibility GetExtentX() const;
|
|
EVisibility GetExtentY() const;
|
|
EVisibility GetExtentZ() const;
|
|
};
|