2014-03-14 14:13:41 -04:00
|
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "AnimGraphPrivatePCH.h"
|
2014-04-24 14:34:01 -04:00
|
|
|
#include "AnimGraphNode_TransitionResult.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "GraphEditorActions.h"
|
2014-05-20 19:00:53 -04:00
|
|
|
#include "GraphEditorSettings.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "ScopedTransaction.h"
|
|
|
|
|
|
2014-05-20 19:00:53 -04:00
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
/////////////////////////////////////////////////////
|
|
|
|
|
// UAnimGraphNode_TransitionResult
|
|
|
|
|
|
2014-04-23 18:30:37 -04:00
|
|
|
#define LOCTEXT_NAMESPACE "UAnimGraphNode_TransitionResult"
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
UAnimGraphNode_TransitionResult::UAnimGraphNode_TransitionResult(const FPostConstructInitializeProperties& PCIP)
|
|
|
|
|
: Super(PCIP)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FLinearColor UAnimGraphNode_TransitionResult::GetNodeTitleColor() const
|
|
|
|
|
{
|
2014-05-20 19:00:53 -04:00
|
|
|
return GetDefault<UGraphEditorSettings>()->ResultNodeTitleColor;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FString UAnimGraphNode_TransitionResult::GetTooltip() const
|
|
|
|
|
{
|
|
|
|
|
return TEXT("This expression is evaluated to determine if the state transition can be taken");
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-23 18:30:37 -04:00
|
|
|
FText UAnimGraphNode_TransitionResult::GetNodeTitle(ENodeTitleType::Type TitleType) const
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2014-04-23 18:30:37 -04:00
|
|
|
return LOCTEXT("Result", "Result");
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UAnimGraphNode_TransitionResult::GetMenuEntries(FGraphContextMenuBuilder& ContextMenuBuilder) const
|
|
|
|
|
{
|
|
|
|
|
// Intentionally empty. This node is autogenerated when a transition graph is created.
|
|
|
|
|
}
|
2014-04-23 18:30:37 -04:00
|
|
|
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|