Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Private/K2Node_CallDataTableFunction.cpp
Joe Conley 413f955c2c DataTable/CurveTable Blueprint nodes: Drop down box for selecting row name
Remove requirement for blueprint node name pins to be non-numeric values (this requirement seems to no longer be present in other areas of the engine)

Modified SGraphPinNameList to use new SNameComboBox class

[CL 2266949 by Joe Conley in Main branch]
2014-08-21 23:21:25 -04:00

36 lines
1.1 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "BlueprintGraphPrivatePCH.h"
#include "CompilerResultsLog.h"
UK2Node_CallDataTableFunction::UK2Node_CallDataTableFunction(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
}
void UK2Node_CallDataTableFunction::PinDefaultValueChanged(UEdGraphPin* Pin)
{
Super::PinDefaultValueChanged(Pin);
FString DataTablePinName = GetTargetFunction()->GetMetaData(FBlueprintMetadata::MD_DataTablePin);
if (Pin->PinName == DataTablePinName)
{
// When the DataTable pin gets a new value assigned, we need to update the Slate UI so that the RowName drop down gets updated
GetGraph()->NotifyGraphChanged();
}
}
void UK2Node_CallDataTableFunction::NotifyPinConnectionListChanged(UEdGraphPin* Pin)
{
Super::NotifyPinConnectionListChanged(Pin);
FString DataTablePinName = GetTargetFunction()->GetMetaData(FBlueprintMetadata::MD_DataTablePin);
if (Pin->PinName == DataTablePinName)
{
// When the DataTable pin gets a new connection assigned, we need to update the Slate UI so that the RowName drop down gets updated
GetGraph()->NotifyGraphChanged();
}
}