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]
29 lines
1004 B
C++
29 lines
1004 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "PropertyEditing.h"
|
|
#include "PropertyCustomizationHelpers.h"
|
|
|
|
class FEnvDirectionCustomization : public IPropertyTypeCustomization
|
|
{
|
|
public:
|
|
|
|
// 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
|
|
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance( );
|
|
|
|
protected:
|
|
|
|
TSharedPtr<IPropertyHandle> ModeProp;
|
|
bool bIsRotation;
|
|
|
|
FText GetShortDescription() const;
|
|
EVisibility GetTwoPointsVisibility() const;
|
|
EVisibility GetRotationVisibility() const;
|
|
void OnModeChanged();
|
|
};
|