You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE) This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText. [CL 2399803 by Jamie Dale in Main branch]
43 lines
1.3 KiB
C++
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;
|
|
|
|
FText GetHeaderDesc() const;
|
|
void OnTypeChanged();
|
|
void InitCachedTypes();
|
|
|
|
EEnvQueryParam::Type ParamType;
|
|
mutable uint8 CachedBool : 1;
|
|
mutable float CachedFloat;
|
|
mutable int32 CachedInt;
|
|
};
|