Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/EnvQueryParamInstanceCustomization.h
Nick Darnell 90e793745c Slate - ESlateCheckBoxState has been renamed to ECheckBoxState.
[CL 2384008 by Nick Darnell in Main branch]
2014-12-10 14:24:09 -05:00

43 lines
1.3 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EnvironmentQuery/EnvQueryTypes.h"
class FEnvQueryParamInstanceCustomization : public IPropertyTypeCustomization
{
public:
static TSharedRef<IPropertyTypeCustomization> MakeInstance( );
public:
// 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;
protected:
TSharedPtr<IPropertyHandle> NameProp;
TSharedPtr<IPropertyHandle> ValueProp;
TSharedPtr<IPropertyHandle> TypeProp;
TOptional<float> GetParamNumValue() const;
void OnParamNumValueChanged(float FloatValue) const;
EVisibility GetParamNumValueVisibility() const;
ECheckBoxState GetParamBoolValue() const;
void OnParamBoolValueChanged(ECheckBoxState BoolValue) const;
EVisibility GetParamBoolValueVisibility() const;
FString GetHeaderDesc() const;
void OnTypeChanged();
void InitCachedTypes();
EEnvQueryParam::Type ParamType;
mutable uint8 CachedBool : 1;
mutable float CachedFloat;
mutable int32 CachedInt;
};