You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
46 lines
1.5 KiB
C++
46 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IPropertyTypeCustomization.h"
|
|
#include "Types/SlateEnums.h"
|
|
|
|
struct FEdGraphPinType;
|
|
class UAnimGraphNode_LinkedInputPose;
|
|
class SEditableTextBox;
|
|
|
|
class FAnimBlueprintFunctionPinInfoDetails : public IPropertyTypeCustomization
|
|
{
|
|
public:
|
|
static TSharedRef<IPropertyTypeCustomization> MakeInstance()
|
|
{
|
|
return MakeShareable(new FAnimBlueprintFunctionPinInfoDetails());
|
|
}
|
|
|
|
// IDetailCustomization interface
|
|
virtual void CustomizeHeader(TSharedRef<IPropertyHandle> InStructPropertyHandle, FDetailWidgetRow& InHeaderRow, IPropertyTypeCustomizationUtils& InStructCustomizationUtils) override;
|
|
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> InStructPropertyHandle, IDetailChildrenBuilder& InChildBuilder, IPropertyTypeCustomizationUtils& InStructCustomizationUtils) {};
|
|
|
|
private:
|
|
/** Check to see if this name is valid */
|
|
bool IsNameValid(const FString& InNewName);
|
|
|
|
/** UI handlers */
|
|
FEdGraphPinType GetTargetPinType() const;
|
|
void HandlePinTypeChanged(const FEdGraphPinType& InPinType);
|
|
void HandleTextChanged(const FText& InNewText);
|
|
void HandleTextCommitted(const FText& InNewText, ETextCommit::Type InCommitType);
|
|
|
|
private:
|
|
/** Property handles to edit */
|
|
TSharedPtr<IPropertyHandle> NamePropertyHandle;
|
|
TSharedPtr<IPropertyHandle> TypePropertyHandle;
|
|
TSharedPtr<IPropertyHandle> StructPropertyHandle;
|
|
|
|
/** Text box for editing names */
|
|
TSharedPtr<SEditableTextBox> NameTextBox;
|
|
|
|
/** The node we are editing on */
|
|
TWeakObjectPtr<UAnimGraphNode_LinkedInputPose> WeakOuterNode;
|
|
};
|